美文网首页
error opening trace file: No suc

error opening trace file: No suc

作者: imchlorine | 来源:发表于2016-04-26 23:59 被阅读0次

在运行程序后出现了如下错误并且程序闪退:

LogCat报错截图
错误提示系统找不到文件或者目录
仔细查找源码后才反应过来之前修改过包名com.example.activitytest的名称,由于手抖写成了com.example.activityatest
原因:在包名修改过之后,AndroidMainfest.xml申明中并没有随之修改.
仍然是:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.activityatest"
    android:versionCode="1"
    android:versionName="1.0" >```
修改过后程序运行正常

当然,出现*error opening trace file: No such file or directory(2)*的错误可能有其他原因,暂时还没有遇到,搜索后发现还有以下可能导致错误但不限于:
* Activity重命名后,AndroidMainfest.xml中同样没有随之修改
* android api 版本和模拟器的版本不一致导致
* 布局文件出现错误,仔细检查布局文件格式

相关文章

网友评论

      本文标题:error opening trace file: No suc

      本文链接:https://www.haomeiwen.com/subject/ojccrttx.html