-
Notifications
You must be signed in to change notification settings - Fork 117
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 fails to compile with AGP 7.3.0-beta03 #353
Comments
I investigated this and it looks like AGP 7.3.0 is ignoring resources in the |
hi @headsvk
|
I had a somehow similar issue. For me, assets were missing in builds; at first I blamed R8 aggressive mode, but it turned out to be this issue. I think it's safer to use this in general, until there's an update: android {
sourceSets["main"].apply {
assets.srcDir(File(buildDir, "generated/moko/androidMain/assets"))
res.srcDir(File(buildDir, "generated/moko/androidMain/res"))
}
} |
Hey @Alex009, is your suggested fix still the way to go or could you investigate the problem further? AGP 7.3.0 is stable now. |
It seems like AGP 8.0.0-alpha02 works without this workaround. Perhaps this is just a bug in AGP 7.3/7.4. |
@sproctor For me the problem persists with AGP |
will be released in 0.21.0 |
Hi! I tried updating Android Gradle Plugin to
7.3.0-beta03
and Moko Resource to0.20.1
and I can't compile Android anymore.Steps:
7.3.0-beta03
as in this forksample.android-mpp-app
Gradle fails with:
The text was updated successfully, but these errors were encountered: