There are two solutions to solve Error: Could not determine java version from '11.0.8'.
Method 1: downgrade Android Studio and use the historical version of Android Studio environment;
Method 2: upgrade Gradle version;
1. Error reporting information
Open an old project and report the following error:
Could not determine java version from '11.0.8'.
The project uses Gradle version which is incompatible with Studio running on Java 10 or newer.
See details at https://github.com/gradle/gradle/issues/8431
Possible solution:
- Upgrade Gradle wrapper to 4.8.1 version and re-import the project
Select the “menu bar/file/Project Structure” option,
Check that the Android Gradle plug-in version of the Android project is 3.2.0 and the Gradle version is 4.6. This is the version used a few years ago. At present, the project cannot be compiled using the latest Android studio;
2. Solution
Select the menu bar/file/project structure option,
In the pop-up project structure dialog box, update the Android gradle plug-in version to 4.2.1 and the gradle plug-in version to 6.7.1;
Read More:
- [Solved] Android Studio Error: ERROR: Cause: executing external native build for cmake
- [Solved] Project Upgrade Gradle error (Bugly is integrated)
- [Solved] Failed to apply plugin appears when Android studio imports a project
- Android studio version 3.0 import version 2.2.2 error Error:This Gradle plugin requires Studio 3.0 minimum
- [Solved] UE4 Android Package Error: failed for task :permission_library:compileDebugJavaWithJavac
- Kotlin gets the ID automatically error [How to Solve]
- Failed to find Build Tools revision 30.0.3 [How to Solve]
- [Solved] Flutter package flutter build apk Error: permission-handle
- [Solved] Android Studio 4.1 get manifestOutputDirectory error
- Flutter Package error: keyboard_visibility:verifyReleaseResources
- Execution failed for task ‘:app:kaptDebugKotlin‘ [How to Solve]
- Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment
- Unable to find bundled Java version =>Mac Flutter [Android Studio Arctic Fox 2020.3.1]
- [Solved] UE4UE5 Package Android Error: UnrealBuildTool failed
- [Solved] Unity Package Error: FAILURE: Build failed with an exception.
- [Solved] Android Studio Error: The binary version of its metadata is 1.5.1, expected version is 1.1.15.
- React-native Error: Make sure you have the Android development environment set up [Solved]
- jitpack.io ERROR: No build artifacts found [How to Solve]
- [Gradle is Stucked in Building Runing] log Error: Timeout waiting to lock journal cache
- Android Studio Error: String index out of range 0 [How to Solve]