android编译时Failure [INSTALL_FAILED_OLDER_SDK]
来源:互联网 发布:淘宝卖一类医疗器械 编辑:程序博客网 时间:2024/05/27 20:03
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
打开源码目录下的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
0 0
- android编译时Failure [INSTALL_FAILED_OLDER_SDK]
- Failure [INSTALL_FAILED_OLDER_SDK] Android-L
- Android studio Failure [INSTALL_FAILED_OLDER_SDK]
- failure install_failed_older_sdk android studio 解决方法
- android studio Failure [INSTALL_FAILED_OLDER_SDK]解决办法
- 【android】Failure [INSTALL_FAILED_OLDER_SDK] 的解决办法
- android studio Failure [INSTALL_FAILED_OLDER_SDK]错误
- android sudio Failure [INSTALL_FAILED_OLDER_SDK]解决方案
- android studio 运行Failure [INSTALL_FAILED_OLDER_SDK]
- Failure [INSTALL_FAILED_OLDER_SDK], IntelliJ IDEA app编译错误
- Failure [INSTALL_FAILED_OLDER_SDK]
- Failure [INSTALL_FAILED_OLDER_SDK]
- Failure [INSTALL_FAILED_OLDER_SDK]
- Failure [INSTALL_FAILED_OLDER_SDK]
- Failure [INSTALL_FAILED_OLDER_SDK]
- Failure [INSTALL_FAILED_OLDER_SDK]
- Failure [INSTALL_FAILED_OLDER_SDK]
- Failure [INSTALL_FAILED_OLDER_SDK]
- Android Studio常用的40个快捷键
- PAT(甲级)1019
- [网易笔试]Amusing Digits
- HDU 1242 BFS入门经典题
- lmdb notes
- android编译时Failure [INSTALL_FAILED_OLDER_SDK]
- [转]Java中系统属性Properties介绍 System.getProperty()参数大全
- PAT(甲级)1020
- postgresql C++接口libpq
- 代码冲突后的解决方法 org文件冲突文件
- canvas的用法
- Android版本和API Level对应关系
- js parser 渲染
- startActivityForResult用法详解