Status Update
Comments
ch...@google.com <ch...@google.com>
ri...@google.com <ri...@google.com> #2
It looks like you are raising an issue as an Android user, rather than an Android Open Source Developer.
For user support, please see the
For Pixel phone support, please see the
Support for other devices is provided by the device manufacturers or by the carriers selling those devices,
ri...@google.com <ri...@google.com> #3
Reporter: is this solved if set android.r8.integratedResourceShrinking false
in your settings
dy...@gmail.com <dy...@gmail.com> #4
is this solved if set android.r8.integratedResourceShrinking false in your settings
Yes android.r8.integratedResourceShrinking=false works.
PS. The last working AGP version is 8.9.0-alpha06. It has been broken since 8.9.0-alpha09. 8.9.0-alpha07 and 8.9.0-alpha08 showed "R8: java.lang.NullPointerException: resource.type must not be null" so unable to test.
hu...@google.com <hu...@google.com> #5
The error means that we expect to see only 1 .ap_
file inside a directory, but there happens to be more.
Could you show us the contents of app/build/intermediates/shrunk_resources_proto_format/ossRelease/minifyOssReleaseWithR8
when the build fails?
dy...@gmail.com <dy...@gmail.com> #6
I also use
splits {
abi {
isEnable = true
reset()
include("x86", "x86_64", "armeabi-v7a", "arm64-v8a")
}
}
in build.gradle.kts
to build multiple APKs, so output-metadata.json
, shrunk-resources-proto-format-oss-arm64-v8a-release.ap_
, shrunk-resources-proto-format-oss-armeabi-v7a-release.ap_
, shrunk-resources-proto-format-oss-x86-release.ap_
and shrunk-resources-proto-format-oss-x86_64-release.ap_
are present in folder minifyOssReleaseWithR8
. AAB can be built successfully with splits
field removed.
Description
Failed to build AAB with AGP 8.9.0 (there was no problem in 8.8.2). Disabling resource shrinking can workaround it. This may be related to https://issuetracker.google.com/issues/401546693 but manually updating R8 to 8.9.33 or 8.10.18 does not work for me. Generating signed APK works normally and is not affected.
AGP version: 8.9.0, Gradle version: 8.13