Failure [INSTALL_FAILED_OLDER_SDK]
2013-10-24 20:35
471 查看
http://eagle0824.iteye.com/blog/1478030
1.安装文件与运行环境的skd不匹配
打开源码目录下的AndroidManifest.xml文件,然后注释掉或者删除掉这行:
<uses-sdk android:minSdkVersion="4" />
2.
若是通过mmm编译的,则可以用以下方式解决
/build/core/version_defaults.mk文件中这一段
ifeq "" "$(DEFAULT_APP_TARGET_SDK)"
# This is the default minSdkVersion and targetSdkVersion to use for
# all .apks created by the build system. It can be overridden by explicitly
# setting these in the .apk's AndroidManifest.xml. It is either the code
# name of the development build or, if this is a release build, the official
# SDK version of this release.
ifeq "REL" "$(PLATFORM_VERSION_CODENAME)"
DEFAULT_APP_TARGET_SDK := $(PLATFORM_SDK_VERSION)
else
DEFAULT_APP_TARGET_SDK := $(PLATFORM_VERSION_CODENAME)
endif
endif
将DEFAULT_APP_TARGET_SDK直接赋值相应的API等级即可。如:
ifeq "REL" "$(PLATFORM_VERSION_CODENAME)"
DEFAULT_APP_TARGET_SDK := 9
else
DEFAULT_APP_TARGET_SDK := 9
endif
1.安装文件与运行环境的skd不匹配
打开源码目录下的AndroidManifest.xml文件,然后注释掉或者删除掉这行:
<uses-sdk android:minSdkVersion="4" />
2.
若是通过mmm编译的,则可以用以下方式解决
/build/core/version_defaults.mk文件中这一段
ifeq "" "$(DEFAULT_APP_TARGET_SDK)"
# This is the default minSdkVersion and targetSdkVersion to use for
# all .apks created by the build system. It can be overridden by explicitly
# setting these in the .apk's AndroidManifest.xml. It is either the code
# name of the development build or, if this is a release build, the official
# SDK version of this release.
ifeq "REL" "$(PLATFORM_VERSION_CODENAME)"
DEFAULT_APP_TARGET_SDK := $(PLATFORM_SDK_VERSION)
else
DEFAULT_APP_TARGET_SDK := $(PLATFORM_VERSION_CODENAME)
endif
endif
将DEFAULT_APP_TARGET_SDK直接赋值相应的API等级即可。如:
ifeq "REL" "$(PLATFORM_VERSION_CODENAME)"
DEFAULT_APP_TARGET_SDK := 9
else
DEFAULT_APP_TARGET_SDK := 9
endif
相关文章推荐
- Failure [INSTALL_FAILED_OLDER_SDK]
- Android Studio Beta 0.8.0 Failure [INSTALL_FAILED_OLDER_SDK]
- Failure [INSTALL_FAILED_OLDER_SDK] 的解决办法
- pkg: /data/local/tmp/com.imooc.systeminfo Failure [INSTALL_FAILED_OLDER_SDK]
- android studio使用中碰到Failure [INSTALL_FAILED_OLDER_SDK] 问题
- Failure [INSTALL_FAILED_OLDER_SDK]
- 解决Failure [INSTALL_FAILED_OLDER_SDK]问题
- Android studio Failure [INSTALL_FAILED_OLDER_SDK]
- Android Studio 0.8.0解决 Failure [INSTALL_FAILED_OLDER_SDK] 问题
- android studio Failure [INSTALL_FAILED_OLDER_SDK]解决办法
- android studio Failure [INSTALL_FAILED_OLDER_SDK]解决办法
- Failure [INSTALL_FAILED_OLDER_SDK]
- Failure [INSTALL_FAILED_OLDER_SDK] Android-L
- Android Studio 0.8.0解决 Failure [INSTALL_FAILED_OLDER_SDK] 问题
- Failure [INSTALL_FAILED_OLDER_SDK]
- android studio 报错Failure [INSTALL_FAILED_OLDER_SDK]
- #Android# Android Studio报错 Failure [INSTALL_FAILED_OLDER_SDK]
- 小米手环APP 失败:Failure [INSTALL_FAILED_OLDER_SDK] 原因
- Failure [INSTALL_FAILED_OLDER_SDK], IntelliJ IDEA app编译错误
- Failure [INSTALL_FAILED_OLDER_SDK]