java.lang.AssertionError: java.lang.NoSuchMethodException: fromValue [int]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by mastrgamr
, 1 year ago
java.lang.NoSuchMethodException: fromValue [int]
java.lang.AssertionError: java.lang.NoSuchMethodException: fromValue [int]
at java.lang.Class.getMethod(Class.java:624)
at java.lang.Class.getMethod(Class.java:603)
at com.squareup.wire.RuntimeEnumAdapter.decode(Unknown Source)
at com.squareup.wire.RuntimeEnumAdapter.getFromValueMethod(Unknown Source)
at com.squareup.wire.RuntimeEnumAdapter.decode(Unknown Source)
at com.company.project.utils.wiremodels.d.a(Unknown Source)
at com.company.project.utils.wiremodels.d.decode(Unknown Source)
at com.company.project.utils.wiremodels.g.a(Unknown Source)
at com.company.project.utils.wiremodels.g.decode(Unknown Source)
at com.squareup.wire.ProtoAdapter.decode(Unknown Source)
at retrofit2.converter.wire.WireResponseBodyConverter.convert(Unknown Source)
at retrofit2.converter.wire.WireResponseBodyConverter.convert(Unknown Source)
at retrofit2.ServiceMethod.toResponse(Unknown Source)
at retrofit2.OkHttpCall.parseResponse(Unknown Source)
at retrofit2.OkHttpCall$1.onResponse(Unknown Source)
at a.az.b(Unknown Source)
at a.a.l.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

Once, 5 months ago
4 times, 4 months ago
18 times, 9 months ago
6 times, 10 months ago
49 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.