EverythingMe / easy-content-providers

Easy integration with Android's built-in and custom content providers data
352 stars 89 forks source link

Exception #13

Open mgoyanes opened 7 years ago

mgoyanes commented 7 years ago

Using the latest Stetho version and having this error.

FATAL EXCEPTION: StethoWorker-main-1 Process: com.vodafone.ccbot, PID: 22675 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.<init>(ModuleDatabaseDelegator.java:23) at me.everything.providers.stetho.Database.<init>(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)

Any idea why?

Using like this:

`ProvidersStetho providersStetho = new ProvidersStetho(this); providersStetho.enableDefaults();

    Stetho.initialize(
            Stetho.newInitializerBuilder(this)
                    .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
                    .enableWebKitInspector(providersStetho.defaultInspectorModulesProvider())
                    .build());`