Skip to content
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

NoSuchMethodError on Android #1941

Closed
PromanSEW opened this issue Aug 20, 2021 · 1 comment
Closed

NoSuchMethodError on Android #1941

PromanSEW opened this issue Aug 20, 2021 · 1 comment

Comments

@PromanSEW
Copy link

After update 2.8.6 to 2.8.7 I got exception:

Caused by java.lang.AssertionError: java.lang.NoSuchFieldException: error
       at com.google.gson.internal.bind.TypeAdapters$EnumTypeAdapter.<init>(TypeAdapters.java:792)
       at com.google.gson.internal.bind.TypeAdapters$30.create(TypeAdapters.java:818)
       at com.google.gson.Gson.getAdapter(Gson.java:458)
       at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117)
       at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166)
       at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102)
       at com.google.gson.Gson.getAdapter(Gson.java:458)
       at retrofit2.converter.gson.GsonConverterFactory.responseBodyConverter(GsonConverterFactory.java:64)
       at retrofit2.Retrofit.nextResponseBodyConverter(Retrofit.java:330)
       at retrofit2.Retrofit.responseBodyConverter(Retrofit.java:313)
       at retrofit2.HttpServiceMethod.createResponseConverter(HttpServiceMethod.java:113)
       at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:82)
       at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:37)
       at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:170)
       at retrofit2.Retrofit$1.invoke(Retrofit.java:149)
       at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
      ...
@eamonnmcmanus
Copy link
Member

This should be fixed by #1495, which is included in the just-released 2.8.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants