2017-03-09 119 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