请帮助,我第二天痛苦。 宣言写得:
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="8" />
收集文件apk以将其安装在lg optimus one(2.2)和nexus 4上 nexus 4 on works lg optimus one写错误
问题是什么? 谢谢
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="my.prog"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="8" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_icon"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="my.prog.MainActivity"
android:screenOrientation="portrait"
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>
</manifest>
日志错误:
87-102/system_process W/PackageParser﹕ /data/app/vmdl35341.tmp (at Binary XML file line #3): Requires newer sdk version #9 (current version is #8)
答案 0 :(得分:0)
问题解决了,可能会有所帮助: 文件build.gradle
defaultConfig {
minSdkVersion 7
targetSdkVersion 18
}
需要更改minSdkVersion
。如果它没有帮助改变清单