简体   繁体   English

android:targetSdkVersion属性有问题

[英]Problem with android:targetSdkVersion attribute

I have an application compiled in Android 1.6 (api level 4) but I need to add android:installLocation attribute. 我有一个在Android 1.6(API级别4)中编译的应用程序,但我需要添加android:installLocation属性。 I have put this line in my AndroidManifest.xml: 我将这一行放在我的AndroidManifest.xml中:

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

I have defined the android:targetSdkVersion as 8, but the android:installLocation doesn't work right. 我已经将android:targetSdkVersion定义为8,但是android:installLocation无法正常工作。

You need to compile against the Level 8 SDK. 您需要根据8级SDK进行编译。

Look for point number 3 in the Backwards Compatibility section here http://developer.android.com/guide/appendix/install-location.html http://developer.android.com/guide/appendix/install-location.html的“向后兼容性”部分中查找第3点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM