-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Version 3.3.0 breaks proguard again #1227
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
Comments
Confirmed Workaround:
|
@samtstern 🤦♂️ Alright, that's it. I'm making a proguard test module. 👍 |
At least you are not getting this:
for a few weeks already. I submitted 74602137 on Issue Tracker, but someone at Google marked as private, I can't even see how my issue is going 😞. Has anyone here found any workaround for it? |
@bernaferrari huh that issue actually came across my desk internally and I asked "Bernardo could you show all of your app's dependencies?" but I did not realize it was private so you were not getting the responses. So, could you show your Also I notice you're using Android Studio 3.2 Canary 6, could you try this with either 3.0 or 3.1 stable? |
@samtstern Sure. There was a project attached in that issue, I updated it here for 3.2 Canary 8.
and, for some reason, it was ignoring the ProGuard file, so I needed to put the twitter dependency, but everything worked fine after it. On 3.2 Canary 8, nothing solved. |
Ok @bernaferrari if this is only an issue in 3.2 Canary 8 I think that's something we should just wait on, canary versions of Android Studio tend to break the build in amazing ways. I really can only justify investigating this as a FirebaseUI issue if it's present in a stable or beta version of Android Studio (which it seems like it is not?) |
Ok for now.. |
I'm on canary 8 right now and it works fine. I've disabled R8 though... Have you tried that? |
@SUPERCILEX wow, worked, thanks.. 🤣 looks so simple now, r8 is the guilty. |
Android studio version 3.0.1 stable channel Can someone tell me what to do? I am not even using retrofit2 or twitter apis anywhere Error:Note: there were 11 duplicate class definitions.
BUILD FAILED in 11s |
@koolkvd see above |
yea trying it now and seems like it's working. Why is this happening, i want to understand... I mean did i do something wrong? |
@koolkvd no this is our fault. We moved some classes to the |
@samtstern More for my curiosity than anything, but I've had this issue in my own app (where I move classes but forget to update proguard rules)... Are |
@btrautmann I guess we could write a custom annotation and add a proguard rule for it, but we aren't planning on touching those classes for months... Great idea to keep in mind if we mess up again! 😊 (Or if you want to make a PR, I don't think anyone would object. 😉) PS: what we're doing is different than the keep rule, we're just trying to tell proguard that it should ignore class not found warnings. |
This has been fixed and released in |
I am seeing this in one of my projects when upgrading from
3.2.2
to3.3.0
We added this to our proguard config:
But then we killed the
provider
classes.I suspect the workaround is:
The text was updated successfully, but these errors were encountered: