Pick change for fixing apk bundle with split ABI build
Change-Id: I4c9a4049f6ce2516d551d1aa6d48fbdfab839a36
This commit is contained in:
parent
eabcab9bbe
commit
28288a8378
@ -175,8 +175,13 @@ android {
|
||||
splits {
|
||||
// Configures multiple APKs based on ABI.
|
||||
abi {
|
||||
// Enables building multiple APKs per ABI.
|
||||
enable true
|
||||
// Detect app bundle and conditionally disable split abis
|
||||
// This is needed due to a "Sequence contains more than one matching element" error
|
||||
// present since AGP 8.9.0, for more info see:
|
||||
// https://issuetracker.google.com/issues/402800800
|
||||
|
||||
// AppBundle tasks usually contain "bundle" in their name
|
||||
enable !gradle.startParameter.taskNames.any { it.toLowerCase().contains("bundle") }
|
||||
|
||||
// By default all ABIs are included, so use reset() and include to specify that we only
|
||||
// want APKs for armeabi-v7a, x86, arm64-v8a and x86_64.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user