刚开始运行就报“不幸的是”。 APP stopped啥节奏啊

Android 码拜 8年前 (2016-05-06) 839次浏览
写了一个APP 编译都没有问题 安装到本人手机上后  运行第一步就提示Unfortunately XXX(app) stopped
XXX就是工程名字 你懂的。
是不是AndroidManifest.xml写的不对?
之前好像看过相似的帖子,但是一时半会找不到了刚开始运行就报“不幸的是”。 APP stopped啥节奏啊刚开始运行就报“不幸的是”。 APP stopped啥节奏啊
<application
android:allowBackup=”true”
android:icon=”@drawable/ic_launcher”
android:label=”@string/app_name”>
<activity
android:name=”.WangListActivity”
android:configChanges=”orientation|screenSize”
android:theme=”@android:style/Theme.Holo”>    –> 个人认为特别是这句有问题
<intent-filter>
<action android:name=”android.intent.action.MAIN” />
<category android:name=”android.intent.category.DEFAULT” />
<category android:name=”android.intent.category.LAUNCHER” />
</intent-filter>
</activity>
解决方案

6

改界面布局的API版本

6

看一下 logcat 中的报错信息

13

本人猜测莫非不是这俩冲突?
<category android:name=”android.intent.category.DEFAULT” />
<category android:name=”android.intent.category.LAUNCHER” />

8

能运行了,证明编译是没有问题的,你的log没有写全

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明刚开始运行就报“不幸的是”。 APP stopped啥节奏啊
喜欢 (0)
[1034331897@qq.com]
分享 (0)