-
Notifications
You must be signed in to change notification settings - Fork 174
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
The shrinker may have failed to optimize the Java bytecode. #356
Comments
@nicklbaert After upgrading to AGP 8.0, it prompts that each Android package requires a Namespace. How should I handle external packages that I reference which do not have this tag? |
There's no need to upgrade to AGP 8.x You can set you AGP plugin to 7.4.2 and AGP to 7.6.4. Those 2 are latest versions I believe. If you still have issues with other plugins in your project you could also try this (untested): // Top-level build.gradle file
allprojects {
...
// Add this to populate namespace to other packages.
subprojects {
afterEvaluate { project ->
if (project.hasProperty('android')) {
project.android {
if (namespace == null) {
namespace project.group
}
}
}
}
}
} |
I was using AGP 7, setting the minSdkVersion to 24 resolved the issue. tks |
@llfbandit
ERROR:D8: com.android.tools.r8.kotlin.H
ERROR:D8: com.android.tools.r8.kotlin.H
FAILURE: Build failed with an exception.
Execution failed for task ':app:mergeExtDexDebug'.
BUILD FAILED in 1m 57s
no , I attempted to upgrade to compileSdk = 34 and applied id "com.android.application" version "7.4.2" with apply false, but encountered issues nonetheless.
The text was updated successfully, but these errors were encountered: