my app is working perfectly in debug mode but when I upload my app in internal testing, app crashes on start everytime. Here's the crash report:
Fatal Exception: java.lang.VerifyError: Verifier rejected class e.g.b.c.i.f.f2: void e.g.b.c.i.f.f2.run() failed to verify: void e.g.b.c.i.f.f2.run(): [0x36] cannot access instance field e.g.b.c.i.f.f0 e.g.b.c.i.f.j.b from object of type Reference: java.lang.Object (declaration of 'e.g.b.c.i.f.f2' appears in /data/app/~~sg8-kWQGjjoS5OEELCEY7A==/com.example.myapp-nbqfHplywzk3pMiZRRiUsw==/base.apk) at com.google.android.gms.internal.consent_sdk.zzx.zzb(zzx.java:9) at com.google.android.gms.internal.consent_sdk.zzw.run(zzw.java:9) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) at java.lang.Thread.run(Thread.java:1012)
I've provided the problem and looking for solution.
it might be because the proguard obfuscate your code. Idealy in the release env, the code needs to be obfuscated to prevent a reverse enginering in your release apk. you can see in the
app/build.gradlethere'sminifyEnabled trueto obfuscate your code. Here is the reference to read.You can try some scenario :
falsethen build your release apk. Observe the whether the issue is still happen.false, try to modify yourproguard-rules.proand set your data classes to not being obfuscated. Here's the reference for doing that and don't forget to setminifyEnabled trueagain.I hope it help.