今天热门
热点:

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


写了一个APP 编译都没有问题 安装到自己手机上后  运行第一步就提示Unfortunately XXX(app) stopped

XXX就是工程名字 你懂的。。。

是不是AndroidManifest.xml写的不对?

之前好像看过类似的帖子,但是一时半会找不到了


<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>



解决方案

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

改界面布局的API版本

看一下 logcat 中的报错信息

我猜测难道不是这俩冲突?
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />

www.zrccd.nettrue/topics/20180309/188704.htmlTechArticle刚开始运行就报“不幸的是” APP stopped啥节奏啊,appstopped 写了一个APP编译都没有问题安装到自己手机上后运行第一步就提示UnfortunatelyXXX(app)stopped XXX就是工程名字你懂的。。。 是不是...

相关文章

    暂无相关文章

用户评论

大家都在看