GithubHelp home page GithubHelp logo

Comments (7)

joshzana avatar joshzana commented on April 28, 2024 3

Sigh. It's always Proguard.
This is the fix:
-keep class com.facebook.stetho.* {;}

Thanks!

from stetho.

jasta avatar jasta commented on April 28, 2024

It's common to see a few Not implemented messages stream by. It represents specific JSON-RPC methods as part of the Chrome Debugger protocol that we don't understand/implement yet.

Is there something that's actually not working as a result or is this just a concern about the warnings?

from stetho.

eikaramba avatar eikaramba commented on April 28, 2024

sry for late answer. Actually on my very first try, nothing worked and the error was shown. However, when i tested it again it now works and the error is gone.

from stetho.

joshzana avatar joshzana commented on April 28, 2024

I am seeing this exact thing with my app. The stetho sample in the repo works fine, but with the OP's initialize() code, and the gradle dependency, all I get is the following in devtools console:

Not implemented: Profiler.setSamplingInterval

And the following in logcat:

I/stetho﹕ Listening on @stetho_com.dropbox.android_devtools_remote
D/ChromeDevtoolsServer﹕ onOpen
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Page.canScreencast
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Page.canEmulate
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Worker.canInspectWorkers
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Console.setTracingBasedTimeline
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Console.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Network.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Page.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Page.getResourceTree
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Debugger.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Debugger.setPauseOnExceptions
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Debugger.setAsyncCallStackDepth
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Debugger.skipStackFrames
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Runtime.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: DOM.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: CSS.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Timeline.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Database.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: DOMStorage.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Profiler.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Profiler.setSamplingInterval
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: IndexedDB.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: DOM.getDocument
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Worker.setAutoconnectToWorkers
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Inspector.enable
D/ChromeDevtoolsServer﹕ Method not implemented: Not implemented: Page.setShowViewportSizeOnResize

With the stetho sample app, I don't see the DevTools console error.

Any ideas?

from stetho.

jasta avatar jasta commented on April 28, 2024

You're using proguard obfuscation and/or shrinking. If the latter, odds are you're doing this for the Dalvik method limit issues, so your best solution is to keep/keepnames com.facebook.stetho.inspector.protocol.module.*.

I intended to put up a wiki for this but haven't gotten around to it yet. Some info can be found here:

#80 (comment)

from stetho.

thuytrinh avatar thuytrinh commented on April 28, 2024

👍

from stetho.

genius15 avatar genius15 commented on April 28, 2024

helpful ,I met the same problem

from stetho.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.