Android: Pin R8 9.1.34 to fix release minify crash
Override AGP-bundled R8 in settings.gradle.kts:
- classpath("com.android.tools:r8:9.1.34") from r8-releases/raw
This resolves :app:minifyReleaseWithR8 failing with:
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 0
Bug report: https://issuetracker.google.com/issues/495458806
Co-Authored-By: OatmealDome <[email protected]>
This commit is contained in:
1 parent
c05b231015
commit
336f604b3a
1 file changed
+15
@@ -1,4 +1,19 @@
|
|||||||
pluginManagement {
|
pluginManagement {
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
maven {
|
||||||
|
url = uri("https://storage.googleapis.com/r8-releases/raw")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
// Temporary override for AGP-bundled R8 crash in release minification.
|
||||||
|
// https://issuetracker.google.com/issues/495458806
|
||||||
|
// TODO: Re-test without this override when upgrading AGP and remove if fixed upstream.
|
||||||
|
classpath("com.android.tools:r8:9.1.34")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
google()
|
google()
|
||||||
|
|||||||
Reference in new issue
Block a user