https://kotlinlang.org logo
#compose
Title
# compose
r

Rob

02/04/2022, 11:28 PM
Anyone else getting java.lang.AbstractMethodError when building minified builds? This started happening when upgrading gradle to 7.1.0. When I disable obfuscation in proguard-rules.pro this exception doesn't happen. I've tried both compose 1.1.0-rc03 and 1.0.5. Thanks!
a

Albert Chang

02/05/2022, 6:03 AM
File an issue against R8 here.
👍 1
p

patrick

02/15/2022, 12:27 PM
We’re seeing the same, have you found any fix for tat @Rob?
r

Rob

02/15/2022, 1:47 PM
Yes. They fixed it in r8:3.1.66 (https://issuetracker.google.com/issues/218092224). You add this to you top level build.gradle.kts.
Copy code
buildscript {
    repositories {
        mavenCentral()
        maven {
            url = uri("<https://storage.googleapis.com/r8-releases/raw>")
        }
    }
    dependencies {
        classpath("com.android.tools:r8:3.1.66")     
        classpath("com.google.guava:guava:30.1.1-jre") // Required until R8 3.2.4-dev.
    }
}
🙏 1
👍 1
34 Views