Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building apk returns gradle error code 1 #14

Open
WelliMakki opened this issue Sep 18, 2024 · 0 comments
Open

Building apk returns gradle error code 1 #14

WelliMakki opened this issue Sep 18, 2024 · 0 comments

Comments

@WelliMakki
Copy link

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':file_previewer:compileReleaseKotlin'.

Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (1.8) and 'compileReleaseKotlin' (17).

I'm using JDK 21

flutter doctor:
[√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [Version 10.0.22635.4145], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.5)
[√] Android Studio (version 2023.3)
[√] VS Code (version 1.93.1)
[√] Connected device (2 available)
[√] Network resources

! Doctor found issues in 1 category.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant