-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Gradle 8.0 build issue #1686
Comments
i am also facing Same issue . Updated build version also |
I have same problem |
I am also facing the same issue. Not even running the project. Please fix it. |
I am also facing the same issue with gradle 8.0. Can anyone please help me out ? |
I am also facing issue with gradle 8.0 need jdk17 |
same problem |
@jorrrdane I agree as well. It seems to be related to Flamingo upgrade. I just upgraded and run into this problem (Linux).
When I saw errors like this in the past, eventually they were related to the proguard. |
I have upgraded a toy project to AGP 8.0 through a few walkarounds below
|
I am also facing this issue. please fix it as soon as possible @JakeWharton
|
go to Android Studio Preferences..., then Build, Execution, Deployment / Build Tools / Gradle, then set the Gradle JDK to be of some version 15 |
same issue . need solution. |
can't. when use gradle 8, JDK version 17 at least |
Tested and effective |
Fix works if your gradle version is still under 8.0 (as it requires JDK 17 minimium). |
@JakeWharton If the library is discontinued in support - should we even hope for the update to support JDK 17 ? |
use JDK15 can fixed. |
|
|
The default JDK version of Android Studio Flamingo is 17 , which will cause the compilation to fail. Solution:
|
|
Use Gradle JDK 11 version from settings search gradle and select JDK version 11, Works for me |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Use JDK Version 11.0.19 actual version but use around 11 versions. it'll work. |
Hello!
Plus this:
Or migrate to viewBinding |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Yes i did the same, i changed it to jdk 11 and now my project is working fine |
how to use the kotlin file, thanks |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
same problem, Please don't deprecate this lib. Although there is view binding, this lib are still better than view binding. |
The new Android APIs 33+ require Java version 17 to build the application. It's better to upgrade your code then to wait for the plugin to be updated. I removed the implementation for the code and instead made improvements to use Java/Kotlin latest setup to overcome challenges to move away from the plugin. I know this may not be possible for everyone, so I am also working on a fix to upgrade this plugin itself. Update: not picking up the upgrade immediately. On hold for now. |
这个可以解决 |
Dropped the ButterKnife library because it is not supported for Gradle 8+ and Java 17+ |
@JakeWharton doesn't this fall into the bucket of "critical bug fixes for integration with AGP" mentioned in the readme? |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
If you are upgrading AGP then you should be upgrading away from Butter Knife. At this point it's been years so if you want to keep using an outdated library then I would suggest staying on equally outdated JDKs and AGPs. |
Which library can we use instead of this? |
|
@eaglean first line of readme: |
Even though I am using Gradle 8, just reducing the Java version to 11 from 17 resolved the issue. I was using command line to build my project locally. However I was getting this same error even though our pipeline on Gitlab was successfully building as the pipeline was using Java 11. |
Worked for me with downgrading Java from 17 to 11. |
I've modified my ancient project's
And now it builds with latest Gradle (8.6 RC3), JDK 21 and latest Android Gradle Plugin (8.2.2)! 🎉 |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Faced the same issue. With these configurations it's working for me:
|
This is working for me : |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
i solved this problem like below: org.gradle.jvmargs=-Xmx1536m and it fixed. |
I solved butterknife issue in Gradle 8.5 version like below.
|
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
it's work, many thanks |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
If you want support java 17 and above, please use app module build gradle file add code, `
} I hope you can help. |
Solution not worked for me , working on this build.gradle (module) build.gradle (app) |
这个配置一下可以使用 我的, jdk17 gradle8.4 可以正常工作 |
Cause: superclass access check failed: class butterknife.compiler.ButterKnifeProcessor$RScanner (in unnamed module @0x69d73d) cannot access class com.sun.tools.javac.tree.TreeScanner (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.tree to unnamed module @0x69d73d
The text was updated successfully, but these errors were encountered: