Search code examples
stetho

Android - Stetho Showing Empty View Hierarchy


I initialized stetho with the following code

public class MyApplication extends Application {
    public void onCreate() {
        super.onCreate();
        Stetho.initializeWithDefaults(this);
    }
}

Now when I go to chrome://inspect it is showing empty View Hierarchy

enter image description here

However, I can check database in stetho debugger. enter image description here

So, everything else is working fine.

What am I missing here?


Solution

  • I added android:name=".MyApplication" in the AndroidManifest.xml inside application tag.

    It is now working.

    <application
        ....
        android:name=".MyApplication"
        .....
    </application>
    

    enter image description here