安卓:安装位置

标签 android

我是 Android 新手,我试图在 list 中设置 installLocation,我发现 here我的minsdk应该是Ver2.2(froyo)及以上版本。 在我的 mainfest 中:

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

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ir.royalplus.guessyourcar"
android:versionCode="1"
android:installLocation="auto"
android:versionName="3.0" >

<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17" />

但我仍然有这个错误:

error: No resource identifier found for attribute 'installLocation' in package 'android'

我的代码有什么问题?!

最佳答案

android:installLocation 是在 API 级别 8 中引入的。由于您的 minSdkVersion="7" 低于 8,因此不受支持。要解决此问题,请将您的 minSdkVersion 设置为 8 或更高。

Source

关于安卓:安装位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21884665/

相关文章:

android - 在仪器测试中找不到 native 库

android - Activity 转换错误,无法解析符号 '@transition/explode'

java - 错误 :(61, 48) 错误:不兼容的类型:字符串无法转换为 mpandroidchart 中的 List<BarEntry>

android - Android Studio 0.4.2:Gradle项目同步失败错误

android - decodeIndirectRef 中的间接引用 0x416f68a0 无效

android - 并不总是创建大位图

android - 宽度 :100% in CSS not rendering well in Android 4. 4

android - In-app billing的货币判断

Android:无法清除对 SurfaceView 的初始绘制

android - 如何在 Android 的 SQLite 查询中使用 LIMIT 参数