java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/Context;)V in class Lcom/facebook/stetho/inspector/protocol/module/Database; or its super classes (declaration of 'com.facebook.stetho.inspector.protocol.module.Database' appears in /data/app/com.mgm.cc-1/base.apk)

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

Solutions on the web

via GitHub by mgoyanes
, 9 months ago
No direct method <init>(Landroid/content/Context;)V in class Lcom/facebook/stetho/inspector/protocol/module/Database; or its super classes (declaration of 'com.facebook.stetho.inspector.protocol.module.Database' appears in /data/app/com.mgm.cc-1/base.apk)
java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/Context;)V in class Lcom/facebook/stetho/inspector/protocol/module/Database; or its super classes (declaration of 'com.facebook.stetho.inspector.protocol.module.Database' appears in /data/app/com.mgm.cc-1/base.apk)
at me.everything.providers.stetho.ModuleDatabaseDelegator.(ModuleDatabaseDelegator.java:23)
at me.everything.providers.stetho.Database.(Database.java:44)
at me.everything.providers.stetho.ProvidersStetho.getChromeDevtoolsDomain(ProvidersStetho.java:87)
at me.everything.providers.stetho.ProvidersStetho$1.get(ProvidersStetho.java:125)
at com.facebook.stetho.Stetho$BuilderBasedInitializer.getInspectorModules(Stetho.java:528)
at com.facebook.stetho.Stetho$Initializer$RealSocketHandlerFactory.create(Stetho.java:456)
at com.facebook.stetho.server.LazySocketHandler.getSocketHandler(LazySocketHandler.java:42)
at com.facebook.stetho.server.LazySocketHandler.onAccepted(LazySocketHandler.java:36)
at com.facebook.stetho.server.LocalSocketServer$WorkerThread.run(LocalSocketServer.java:167)

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.

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