My team, and I'm trying to resolve this exception, which we get when we try to Proguard our Android application before switching to beta.
The exception is:
Error:Uncaught translation error: com.android.dx.cf.code.SimException: com.android.dx.rop.cst.CstInterfaceMethodRef cannot be cast to com.android.dx.rop.cst.CstMethodRef Possible causes for this unexpected error include:<ul><li>Gradle dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) <a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. <a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
We are trying to track where this error occurs during Proguarding, but are not very familiar with Proguard to know how to find where the crashes occur.
Is there any way to see where this translation error occurs? If I knew that / where an exceptional exception was in my code, perhaps I could fix it. There are online links where Google Play Services can cause problems in other sdks, but we have already used the dependency tool and found that it is correctly linked to 8.4.0 in all sdks.
Our application also uses the multiDexEnabled true flag.
Here is our proguard file:
If you need more information, please let me know, and I will be happy to provide, this is currently blocking our ability to publish a beta version.
source share