Status Update
Comments
da...@google.com <da...@google.com>
pu...@gmail.com <pu...@gmail.com> #2
EDIT:
The splits
block I pasted as enabled
set to false
. This is a mistake and it should read true
.
je...@google.com <je...@google.com>
pu...@gmail.com <pu...@gmail.com> #3
A workaround to this issue is to disable splits for Gradle tasks ending with "BaselineProfile"
splits {
// Configures multiple APKs based on ABI.
abi {
enable = true
gradle.startParameter.getTaskNames().each { task ->
if (task.endsWith("BaselineProfile")) {
enable = false;
}
}
...
}
}
Then a gradle generateReleaseBaselineProfile
completes without error. A following gradle assembleRelease
generate split release APKs, each embedding the profile data (.prof and .profm).
Note that this is not compatible with baselineProfile.automaticGenerationDuringBuild = true
(which is not the default), so you have to generate profile data separately prior to generating split release APKs
mi...@google.com <mi...@google.com> #4
A fix for this error has been submitted and will be backported to AGP 8.5 Patch 1.
However after fixing this error message, there is another error that will be resolved in another bug:
an...@google.com <an...@google.com> #5
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Koala Feature Drop | 2024.1.2 Canary 6
- Android Gradle Plugin 8.6.0-alpha06
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
an...@google.com <an...@google.com> #6
The fixes for this issue are now also available in:
- Android Studio Koala | 2024.1.1 Patch 1
- Android Gradle Plugin 8.5.1
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
ya...@gmail.com <ya...@gmail.com>
j0...@gmail.com <j0...@gmail.com>
ha...@gmail.com <ha...@gmail.com> #7
.
ha...@gmail.com <ha...@gmail.com> #8
I am trying to understand because a lot of error in ... And iam not know how to fix with ur way Bu thank you so much for ur help
ra...@gmail.com <ra...@gmail.com> #9
#8 Thank you so much
mi...@google.com <mi...@google.com> #11
The issue described in
Description
My Android project uses split APKs. That is, its
build.gradle
contain a section:I have used the new
Baseline profile generator
template to generate a baseline module. When I try to run it, it fails on APK installation (project names redacted):In short, it tries to install the APK of each architecture at once, instead of the APK for the architecture of the device it is being installed on. To workaround it I have to set
splits.abi.enable
tofalse
(or comment the wholesplit
block).There is an older bug report very close to it: https://issuetracker.google.com/issues/172423995