Fixed
Status Update
Comments
xa...@google.com <xa...@google.com>
ga...@google.com <ga...@google.com>
ga...@google.com <ga...@google.com> #2
Continuing the last post, I looked into the full configuration from Proguard and confirm there is no line '-addconfigurationdebugging'.
You are right this is a different issue, I'll explain what I found below.
I have separated a part of the project in a separate module configured as an on-demand dynamic feature. To use a class from the feature module in the base module I am trying to load it using reflection like this:
Class<?> libgdxFragmentClass = Class.forName("com.wave.libgdx.LibgdxPreviewFragment");
Object objectInstance = libgdxFragmentClass.newInstance();
When commenting these lines the build runs perfectly. Why does this trigger the error "DexItemBasedConstString instructions should always be rewritten into ConstString"?
You are right this is a different issue, I'll explain what I found below.
I have separated a part of the project in a separate module configured as an on-demand dynamic feature. To use a class from the feature module in the base module I am trying to load it using reflection like this:
Class<?> libgdxFragmentClass = Class.forName("com.wave.libgdx.LibgdxPreviewFragment");
Object objectInstance = libgdxFragmentClass.newInstance();
When commenting these lines the build runs perfectly. Why does this trigger the error "DexItemBasedConstString instructions should always be rewritten into ConstString"?
Description
Version of Gradle Plugin: 4.2.0-alpha12 Version of Gradle: 6.6.1 Version of Java: JDK 11 OS: Linux
Steps to Reproduce:
This fails due tohttps://source.corp.google.com/android/tools/base/build-system/gradle-core/src/main/java/com/android/build/gradle/tasks/PrepareKotlinCompileTask.kt;l=71