java.lang.NoSuchMethodError: No virtual method internalCache(Lokhttp3/OkHttpClient;)Lokhttp3/internal/InternalCache; in class Lokhttp3/internal/Internal; or its super classes (declaration of 'okhttp3.internal.Internal' appears in /data/data/package.com/files/instant-run/dex/slice-okhttp-3.4.1_ec7308667a1c580313f7796370c10373cd70b1b4-classes.dex)

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 GitHub by AndrewBryukhov
, 1 year ago
No virtual method internalCache(Lokhttp3/OkHttpClient;)Lokhttp3/internal/InternalCache; in class Lokhttp3/internal/Internal; or its super classes (declaration of 'okhttp3.internal.Internal' appears in /data/data/package.com/files/instant-run/dex/slice-okhttp-3.4.1_ec7308667a1c580313f7796370c10373cd70b1b4-classes.dex)
java.lang.NoSuchMethodError: No virtual method internalCache(Lokhttp3/OkHttpClient;)Lokhttp3/internal/InternalCache; in class Lokhttp3/internal/Internal; or its super classes (declaration of 'okhttp3.internal.Internal' appears in /data/data/package.com/files/instant-run/dex/slice-okhttp-3.4.1_ec7308667a1c580313f7796370c10373cd70b1b4-classes.dex)
at okhttp3.internal.huc.HttpURLConnectionImpl.newHttpEngine(HttpURLConnectionImpl.java:390)
at okhttp3.internal.huc.HttpURLConnectionImpl.initHttpEngine(HttpURLConnectionImpl.java:341)
at okhttp3.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:410)
at okhttp3.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:247)
at net.gotev.uploadservice.okhttp.OkHttpStackConnection.close(OkHttpStackConnection.java:153)
at net.gotev.uploadservice.HttpUploadTask.upload(HttpUploadTask.java:86)
at net.gotev.uploadservice.UploadTask.run(UploadTask.java:139)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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