-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while trying to run android tests with proguarded debug build #70
Comments
Hmm, a few preliminary questions: It sounds like its possible proguard is stripping out an annotation but isnt entirely getting it and there's still references in the dex somewhere? Not sure. Would you be comfortable sharing your proguard config? If you're comfortable building the project yourself, would be interesting to see some more logs added so we can see exactly what class is being parsed when it fails, which would probably help narrow it down. |
Sorry for the delay, I was on vacations.
I don't use any custom annotations, just Test, RunWith and Suite.SuiteClasses. I am able to run the UI tests from Android Studio (debug but with proguard enabled). Just when using flank/fladle I get that output. I just updated to the latest version of flank (21.09.0) and I can still reproduce this. Attached you have the output of |
@kkoser does the information I provided help ? |
I was able to fix it by updating r8 to the latest version available. Thanks for the help and sorry for the trouble. buildscript {
repositories {
maven {
url = uri("https://storage.googleapis.com/r8-releases/raw")
}
}
dependencies {
classpath("com.android.tools:r8:3.0.72") // <-- R8 version 3.0.72
classpath('com.google.guava:guava:30.1.1-jre') // <-- THIS IS REQUIRED UNTIL R8 3.2.4-dev
...
} |
We have the same issue with Android Gradle Plugin 7.0.4. Should this be reopened? |
I'd recommend opening a new issue, since it looks like you're still encountering the problem on the latest version of r8. |
Hello there, I am using Flank to run UI Tests on Firebase Test Lab, and when I run proguard over my build I get this error that seems related to this library.
I am using AGP 4.4.2. I tried to create a minimal repro project, but I couldn't.
Would you have any ideas of what can be happening ?
The text was updated successfully, but these errors were encountered: