-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi,
I'm creating this issue in case it helps someone in the future 😃.
I was trying to get agent15 to compile on my android project that is still on AGP 7, however I was getting the following error when building (on mergeExtDexDebug):
AGPBI: {"kind":"error","text":"java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null","sources":[{"file":"/Users/lucks/.gradle/caches/modules-2/files-2.1/tech.kwik/agent15/3.0/5e91f5b503bdb623bb71c6bd69699c423184c5d7/agent15-3.0.jar"}],"tool":"D8"}
I ended up solving this by using R8/D8 version 8+ while still on AGP 7 (as seen here).
On settings.gradle:
pluginManagement {
buildscript {
repositories {
mavenCentral()
maven {
url = uri("https://storage.googleapis.com/r8-releases/raw")
}
}
dependencies {
classpath("com.android.tools:r8:8.1.44")
}
}
}
Thanks for the library!
Metadata
Metadata
Assignees
Labels
No labels