您的位置:首页 > 移动开发

Didn't find class "com.android.tools.fd.runtime.BootstrapApplication"

2016-09-28 14:56 489 查看
         在部分机器上开启开启Instantrun,出现“ClassNotFoundException: Didn't find class"com.android.tools.fd.runtime.BootstrapApplication" on path:DexPathList”问题,可以通过下面的方式解决,在“AndroidManifest.xml”中配置的自定义Application,添加默认构造函数:

         1)AndroidManifest.xml中的Application配置:

<application

    android:name=".MyApplication"

    android:allowBackup="true"

    android:icon="@mipmap/ic_launcher"

    android:label="@string/app_name"

    android:supportsRtl="true"

    android:theme="@style/AppTheme">
         2)MyApplication中添加默认构造函数:

public MyApplication() {

    super();
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐