-
Notifications
You must be signed in to change notification settings - Fork 2k
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
java.lang.NoSuchMethodError: 'void com.android.build.api.extension.AndroidComponentsExtension$DefaultImpls.androidTests$default(com.android.build.api.extension.AndroidComponentsExtension, com.android.build.api.extension.VariantSelector, kotlin.jvm.functions.Function1, int, java.lang.Object)' #2631
Comments
I'm having the same issue. Any workaround? Is there a way to make Canary run with an old alpha version? The latest stable breaks my .kts files. |
Having same issue with AGP: |
You can run beta. Its work and its like cannary 15 |
This is a duplicate of #2618, its fixed but we haven't made a release, if you want to get unblock you can use snapshot versions of Hilt from https://oss.sonatype.org/content/repositories/snapshots/com/google/dagger/ |
@danysantiago I tried snapshot but get this error:
|
@b95505017 thats not good... can you try only using the I need to investigate why that symbol is not found, when it is here |
@danysantiago It works when only use snapshot of the plugin! |
@b95505017 I'm new to "snapshots". Can you let me know how you got this working? |
@ColtonIdle to use the snapshot version, add something like this to your buildsript buildscript {
repositories {
/*...*/
maven(url = "https://oss.sonatype.org/content/repositories/snapshots") {
content {
includeModule("com.google.dagger", "hilt-android-gradle-plugin")
}
}
}
dependencies {
/*...*/
classpath("com.google.dagger:hilt-android-gradle-plugin:HEAD-SNAPSHOT")
}
} |
Thank you @SimonMarquis that helped! Really appreciate it! |
i got this error while using this
Any Idea what to do |
@gulabsagevadiya you shouldn't have to rely on a snapshot version anymore since version 2.36 is released: #2634 (comment) |
I'm having the same issue with AGP 7.0 b04, Gradle 7.1, Dagger 2.37 and all dependencies to their latest versions: EDIT: tried the snapshot, the sync completes but I'm having other issues when running, will update here when I figure it out |
@rock3r Well I had same problem, solved with AGP 7.1.0-alpha02, Gradle 7.0.2, and Hilt 2.37. Try this. |
try kapt.use.worker.api=false also try commentr plugin appoly, sync, look for errors (plugin not appliex if errors in sync and sync syccess becouse its can''t find added dependencyu), uncomment, sync
|
@rock3r, @mwy3055, @slavonnet you are likely seeing a 'reencarnacion' of this issue, see: #2700 |
I have the same issue, I don't know why google changes these crucial dependencies every time with no backward compatibility so we should spend hours to fix these. |
I resolved the issue with:
In Build.gradle
|
Goddamn, I spend some hours trying to fix this issue. @rafsanahmad answer worked for me, finally. Thanks, man! |
@rafsanahmad Thank you for ur answer....it worked for me |
@rafsanahmad solution worked for me! thanks! also used @danielandrioli advice and used 7.1.1 gradle |
Studio Build: BB canary1 Version of Gradle Plugin: 7.1 alpha01 Version of Gradle: 7.0.2
I have a project that is updated and work with Arctic Fox beta01 and AGP 7.0 beta01.
I installed bumblebee and got the upgrade assistant. After hitting the accept button I can see in git that the diff is:
For reference here are my hilt dependency declarations
When I hit clean or sync I get the following error:
Originally filed here before I saw Hilt in the stacktrace: https://issuetracker.google.com/issues/188563075
The text was updated successfully, but these errors were encountered: