Android app always crashing

纵饮孤独 提交于 2019-12-02 09:00:25
MysticMagicϡ

Use targetSdkVersion as 19.

<uses-sdk
    android:minSdkVersion="15"
    android:targetSdkVersion="19" />

There is a problem with API 20

Reference

Hope it helps.

You will have to set the correct target and minsdkversion like this:

<uses-sdk android:minSdkVersion="8"
      android:targetSdkVersion="19" />

Change your manifest like this;

<?xml version="1.0" encoding="utf-8"?>

<uses-sdk android:minSdkVersion="8"
  android:targetSdkVersion="19" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MyActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!