2017-03-09 52 views
1

初始化我用下面的代碼的Android - Stetho顯示空視圖層次

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

現在stetho,當我去鉻://檢查它顯示空視圖層次

enter image description here

然而,我可以在stetho調試器中檢查數據庫。 enter image description here

所以,其他一切工作正常。

我在這裏錯過了什麼?

回答

1

我在應用程序標籤內的AndroidManifest.xml中添加了android:name =「。MyApplication」。

它現在正在工作。

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

enter image description here