-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Can't use android gradle plugin 7 with multiplatform template #584
Comments
tl;dr Steps to reproduce and fix the issue
and got too the "Configuration with name 'testApi' not found.". After adding to the android {
// ...
configurations {
create("testApi")
create("testDebugApi")
create("testReleaseApi")
}
} I got the last error message. Then I just updated my Android Studio (might work as well for IntelliJ IDEA) to the canary (unstable) version Arctic Fox 2020.3.1 14 and the error disappeared. It seems like the latest versions are only tested on the newest IDE versions for upcoming releases. EDIT: I haven't however tested if compilation and whatsoever work properly. Any report for further steps would be great. |
Interesting. I didn't know that I should be using AS over intellij. Either way... maybe better error messaging would be helpful here. |
I didn't say that you should use Android Studio over IntellIJ IDEA, I just tested it on that IDE since it is based on IntellIJ IDEA and should work the same. The same however applies for IntelliJ IDEA. I just didn't want to upgrade IntelliJ IDEA to a probably unstable version just to test if it works. But with that being said, I think I would personally prefer Android Studio if you develop cross-platform including android, because the IDE is pretty well optimized for android. But I don't know if Did the solution above solved your issue @ColtonIdle? |
Btw. I just found this issue: @olonho if the statement that is mentioned by nickbutcher applies for this project too, shouldn't we mention it also in the README.md? |
As of 0.4.0 that I tried today, AGP 7 seems to work fine. Closing! |
I'm attempting to use com.android.tools.build:gradle:7.0.0-alpha01 - alpha12 and all of them fail with different error messages.
01 fails with
12 fails with
So if I try to update gradle to 6.8.2, and THEN updating to alpha12, which you are greeted with this issue
Solved by: https://stackoverflow.com/questions/65372825/kotlin-multiplatform-configuration-issue
After applying the solution above you get hit with
The text was updated successfully, but these errors were encountered: