-
Notifications
You must be signed in to change notification settings - Fork 188
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
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8 #4474
Comments
I think this could help you: https://jitpack.io/docs/BUILDING/#java-version
jdk:
- openjdk9
|
Hi, Thank you @josejulio! That's right. You can use SDKMan in before_install:
- sdk install java 11.0.10-open
- sdk use java 11.0.10-open |
https://jitpack.io/com/github/amanv8060/aboutpagelib/492c10d987/build.log |
before_install:
还是不行,报错信息和上面一样,帮忙看看吧 |
This reverts commit 296ee60 We do not need to bump to compileSdkVersion 31 currently, since I have decided not to bump `androidx.window` to `1.0.0-alpha10` or higher currently, since it has changed APIs and ViewUtils will break. https://developer.android.com/jetpack/androidx/releases/window Moreover, bumping compileSdkVersion to 31 requires openjdk 11 in build environment, which will break Jitpack library build and possibly still F-Droid as well, unless changes are made. https://gitlab.com/fdroid/fdroiddata/-/issues/2441 jitpack/jitpack.io#4474 https://jitpack.io/docs/BUILDING/#java-version Also in android studio stub files are loaded when opening class sources since android 12 sources aren't available.
The solution is what @josejulio suggested. You can check on SO too. Create the |
The sdkman solution in the documentation doesn't seem to work: https://jitpack.io/com/github/google/tweakr/jitpack-v2.2.0-g66194de-3/build.log
|
Neither does the jdk9 solution: https://jitpack.io/com/github/google/tweakr/jitpack-v2.2.0-g150d9b1-4/build.log
|
However, it looks like this yml config does work:
|
Or else APG 7 will error out. See jitpack/jitpack.io#4474
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
This reverts commit 296ee60 We do not need to bump to compileSdkVersion 31 currently, since I have decided not to bump `androidx.window` to `1.0.0-alpha10` or higher currently, since it has changed APIs and ViewUtils will break. https://developer.android.com/jetpack/androidx/releases/window Moreover, bumping compileSdkVersion to 31 requires openjdk 11 in build environment, which will break Jitpack library build and possibly still F-Droid as well, unless changes are made. https://gitlab.com/fdroid/fdroiddata/-/issues/2441 jitpack/jitpack.io#4474 https://jitpack.io/docs/BUILDING/#java-version Also in android studio stub files are loaded when opening class sources since android 12 sources aren't available.
This reverts commit 296ee60 We do not need to bump to compileSdkVersion 31 currently, since I have decided not to bump `androidx.window` to `1.0.0-alpha10` or higher currently, since it has changed APIs and ViewUtils will break. https://developer.android.com/jetpack/androidx/releases/window Moreover, bumping compileSdkVersion to 31 requires openjdk 11 in build environment, which will break Jitpack library build and possibly still F-Droid as well, unless changes are made. https://gitlab.com/fdroid/fdroiddata/-/issues/2441 jitpack/jitpack.io#4474 https://jitpack.io/docs/BUILDING/#java-version Also in android studio stub files are loaded when opening class sources since android 12 sources aren't available.
Please provide:
https://jitpack.io/com/github/amanv8060/aboutpagelib/0.0.3/build.log
Does the project build on your machine with the same commands (e.g. ./gradlew install) ?
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8
Thank you!
The text was updated successfully, but these errors were encountered: