Fixed
Status Update
Comments
uc...@google.com <uc...@google.com>
je...@google.com <je...@google.com>
hu...@google.com <hu...@google.com> #2
We use build flavours heavily with a lot of common code. The refactoring support in AS is really good but it continually catches us out when it doesn't work across all flavours in a project. It's a big gap for serious product development.
be...@google.com <be...@google.com>
be...@google.com <be...@google.com> #3
We at my company need this same feature. We have a lot of white labels and need refactor the same class across flavours. :(
Description
I am having a very weird bug, probably related to Crashlytics or Firebase UI with ProGuard, and affecting directly Android Studio. This is the Gradle console log that shows up when I try to 'run' the app (tap in the green button):
Execution failed for task ':app:transformClassesWithAndroidGradleClassShrinkerForDebug'.
> java.lang.RuntimeException: com.android.build.gradle.shrinker.ClassLookupException: Invalid class reference: com/twitter/sdk/android/core/Callback
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Problem is, if I click on the --stacktrace or --info to see the problem with more details, the project will compile fine, as if nothing wrong had ever occurred
I have attached a full sample project that has this happening.
Ps. The project's title has nothing to do with the bug, but everything you need to reproduce the bug described above is (correctly) there.
Thanks!
Build: 3.0 Beta 3, AI-171.4294784, 201708231855,
AI-171.4294784, JRE 1.8.0_152-release-915-b01x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.12.5 unknown, screens 1920x1080; Retina