-
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
java.lang.VerifyError #2310
Comments
Does this occur on an actual Android device? The comments on #1353 suggest that this might (in the past) have been caused by Google Play Pre-Launch and does not occur on actual devices. Also Android 4.0.3 is somewhat old; I think there are a few issue reports here where users encountered problems because some vendors included themselves Gson in their Android version, which caused conflicts, see #255. Though that might have only occurred for even older Android versions. For which device does this occur? Does this occur only for one device or also for other ones (with newer Android versions)? Is this the complete exception stack trace or is there more information about why the verifier rejected the class? |
The Android simulator is used. This problem only occurs in Gson version 2.10. The problem cannot be found in Android 5.0 and above. |
Thanks for the answer!
Do you mean an Android Emulator started from the IDE (e.g. Android Studio)? Has this issue also appeared on a real device? Is there more information in the exception stack trace why the |
Yes, I am using the Android emulator on Android Studio, as I do not have a real device with Android 4.0.3 version, I cannot test it, and in the stack trace I can only provide these useful information. |
I got this problem below Marshmallow devices. For this upgrade Android 21 & 22 have errors on: Collections2.filter & ExoPlayer.Builder(this).build() But: com.google.code.gson:gson:2.9.1, this problem not occurred. |
Same question as above, do you experience this on real physical devices or only on emulators?
What do you mean by that? Are these classes calling Gson methods and this is where the |
@ylk2534246654 can you please review PR #2398 |
@Marcono1234 this issue is happening on real Android 4 devices of Delta Chat users UPDATE: I switched to version |
Thanks a lot! The full crash log of deltachat/deltachat-android#2610 contains the following interesting lines:
According to the documentation To my knowledge no official minimum Android API level has been documented for Gson so far; I have created #2429 for that now. I guess for this specific issue with |
It was decided in #2429 that future Gson versions require at least Android API level 21 (Android 5), because nowadays only a small number of devices is still using older versions. This is also consistent with the minimum Android API level specified by other popular libraries such as OkHttp or Retrofit. Gson 2.10.1 and older should support Android API level 19 as minimum (newer Gson versions might work with Android API level 19 as well, but it is not guaranteed). The code which is causing this So I think this However, if you experience this |
Yes, I think we can close this issue. If you need to support very old Android versions then you must use an old Gson version. |
Gson version
2.10.1
Java / Android version
Android 4.0.3
Description
Error after updating from 2.9.1 to 2.10.1
Exception stack trace
The text was updated successfully, but these errors were encountered: