-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Verifier rejected class com.google.gson.Gson #1353
Comments
I am also facing the same issue. java.lang.IllegalAccessError: Illegal class access: <my_package>.Network.e' attempting to access 'com.google.gson.d' (declaration of '<my_package>.Network.e' appears in /data/app/<my_package>-1/base.apk) Any quick work around for this issue. |
Hi, @Iavkush This is not related with this gson library. Please add following code in the app level gradle.
Hope this will help you! |
@RobMans426 If I do not add below line in my app/build.gradle file, compilation is success. But when I upload my app to playstore, it gives me errors which I have mentioned in previous comment [These errors I am getting in latest release to my app, previously no errors].
Please help. |
@lavkush-verma please exclude gson from all libraries. |
Yes, I am able to run on Release mode in my device set running on L, M, N
and O variant.
On Wed, Jul 25, 2018 at 19:28 RobMans426 ***@***.***> wrote:
@lavkush-verma <https://github.com/lavkush-verma>
Can you run your app in your device with release mode?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1353 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACK414XJJ6i3lP92kmbl4xG6qBxet-czks5uKHl-gaJpZM4VVtud>
.
--
-----
|
Could u copy your app level gradle file here? |
Hi,
Occurs on Pixel w/Android 8.0 and Pixel 2 w/Android P Preview |
@RobMans426 dependencies {
} |
I have the same problem with @tomerpetel . |
I have the same problem with @tomerpetel @nostel Dependencies are added in this way ... dependencies {
|
Hi, guy. I'm sure this is a bug from Firebase Testlab. And I found the steps to reproduce it and a quick fix: Steps to reproduce:
Here is a quick Cheat:
Replace: So basically, create a new Gson () instance immeadiately when app launch will prevent the crashes on Firebase test lab. Hope that help you! |
I think this is related to this: googlesamples/google-services#358 |
@tomerpetel Because Im experiencing the same issue only in production. Tested on 4 Real devices from API 19-23. Plus im not rlly using GSON but i know some other libraries rely big on it. |
@ispam thanks for the answer. So if I'm understanding it right the fix was pushed to 100% of Android users (version v12.8.74) 3 days ago. So why I'm still seeing it in a report from 2 days ago? |
@tomerpetel Its been rolling out, but currently not update on my phones yet. |
@ispam Thanks mate 👍 |
Hey, I am getting this issue all of a sudden. Is there anything which should be fixed. Everything seemed to work fine until today. I have rolled out a build which was not at all related to this, but it started crashing. Fatal Exception: java.lang.VerifyError: Verifier rejected class com.google.gson.Gson: void com.google.gson.Gson.() failed to verify: void com.google.gson.Gson.(): [0x5] register v0 has type Precise Reference: com.google.gson.Gson$1 but expected Reference: com.google.gson.reflect.TypeToken (declaration of 'com.google.gson.Gson' appears in /data/app/com.appname-aj6tBqViZ3DxYl_xUqAW_g==/base.apk:classes2.dex) How can I fix this? It seems like this error came only on the pixel device. |
@anudeepreddygopu see @ispam answer, fix has been released but it'll take time until propagated to all devices |
For me it was a pre-launch update on Google Publish. Once I opted out for pre-signing, everything passed. Go to the settings under pre-launch reports, go down to "Pre-launch report version", and select to opt-out so your app doesn't get recompiled. |
Hi, I am developing Android app and I faced wired issue recently.
My app worked smoothly before, then it broke down few days ago.
When I run my app, I got this error.
java.lang.VerifyError: Verifier rejected class com.google.gson.Gson due to bad method void com.google.gson.Gson.<clinit>() (declaration of 'com.google.gson.Gson' appears in /data/app/com.xxx.xx-1/base.apk)
I tried many ways, but I still did not fix this error.
Could someone help me for this error?
Best Regards.
The text was updated successfully, but these errors were encountered: