Install APK with adb:
$ platform-tools/adb install out/target/product/generic/system/app/Bundled.apk
233 KB/s (12588 bytes in 0.052s)
pkg: /data/local/tmp/Bundled.apk
Failure [INSTALL_FAILED_OLDER_SDK]
Error message in logcat:
D/PackageParser( 60): Scanning package: /data/app/vmdl64930.tmp
W/PackageParser( 60): /data/app/vmdl64930.tmp (at Binary XML file line #0): Requires development platform AOSP but this is a release platform.
The error was created by android.content.pm.PackageParser, which compares the android:minSdkVersion and android:targetSdkVersion attributes of the uses-sdk element of AndroidManifest.xml in the APK file against the SDK version of the device or emulator. The SDK version on the device has to be greater than that required by android:minSdkVersion.
In my case, since I built the package with AOSP, the target emulator has to be AOSP also. This is the relavant section in AndroidManifest.xml:
<uses-sdk android:minSdkVersion="AOSP"
android:targetSdkVersion="AOSP">
</uses-sdk>
And the relevant section in android.content.pm.PackageParser:
if (minCode != null) {
if (!minCode.equals(SDK_CODENAME)) {
if (SDK_CODENAME != null) {
outError[0] = "Requires development platform " + minCode
+ " (current platform is " + SDK_CODENAME + ")";
} else {
outError[0] = "Requires development platform " + minCode
+ " but this is a release platform.";
}
mParseError = PackageManager.INSTALL_FAILED_OLDER_SDK;
return null;
}
} else if (minVers > SDK_VERSION) {
outError[0] = "Requires newer sdk version #" + minVers
+ " (current version is #" + SDK_VERSION + ")";
mParseError = PackageManager.INSTALL_FAILED_OLDER_SDK;
return null;
}
if (targetCode != null) {
if (!targetCode.equals(SDK_CODENAME)) {
if (SDK_CODENAME != null) {
outError[0] = "Requires development platform " + targetCode
+ " (current platform is " + SDK_CODENAME + ")";
} else {
outError[0] = "Requires development platform " + targetCode
+ " but this is a release platform.";
}
mParseError = PackageManager.INSTALL_FAILED_OLDER_SDK;
return null;
}
// If the code matches, it definitely targets this SDK.
pkg.applicationInfo.targetSdkVersion
= android.os.Build.VERSION_CODES.CUR_DEVELOPMENT;
} else {
pkg.applicationInfo.targetSdkVersion = targetVers;
}
分享到:
相关推荐
The application could not be installed: INSTALL_FAILED_OLDER_SDK The application’s minSdkVersion is newer than the device API level. 意思是我使用的设备的sdk版本低于要求的sdk版本 解决方法: 找到项目...
【标题】"install_guide_ja_JP_older2x7_java编程_" 指的是一个针对旧版本2.x和7.x的Java编程的安装指南,特别适用于日本用户(ja_JP表示日语)。这个指南可能详细阐述了如何在不同的操作系统上安装Java开发环境,...
- `INSTALL_FAILED_OLDER_SDK`:设备系统版本低于应用要求。 - 解决办法:更新设备操作系统至更高版本。 - `INSTALL_FAILED_CONFLICTING_PROVIDER`:设备里已经存在与应用里同名的Content Provider。 - 解决办法...
为了使各位装维兄弟对无线网络部提供的测试APP有 更好的理解,特将各APP测试的详细步骤列出,以供参考: 注意事项:由于无线网络环境随时都在变化,填写各个数值时需在测试软件显示相对问题的情况下填写。...
adb: failed to install SystemActivities.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1716187195.tmp/base.apk (at Binary XML file line #0): Requires newer...
INSTALL_FAILED_OLDER_SDK 设备系统版本低于应用要求 INSTALL_FAILED_CONFLICTING_PROVIDER 设备里已经存在与应用里同名的 content provider INSTALL_FAILED_NEWER_SDK 设备系统版本高于应用要求 INSTALL_FAILED_...
android_sdk_linux_m3-rc20a.zip -> Linux (i386) -> md5sum : 2660b4029039b7d714e59827e9a9a11d -> https://developer.android.com/sdk/older_releases
Note: Some older cards, such as Voodoos and the early ATIs do not have drivers which appear to be completely compatible. Use these at your own risk. Any card problems reported are in bugs.txt ...
在标题"**dft.zip_K._older9gv_tales8fy_傅里叶变换**"中,"dft.zip"指的是包含关于离散傅里叶变换资源的压缩文件,而"K. older9gv"和"tales8fy"可能是作者或项目的标识符。这个压缩包很可能是为了教学或研究目的,...
https://developer.android.com/sdk/older_releases android-sdk- windows-1 .0_r1.zip md5sum : d69f4ee93d4010f726c04302662fd999
set ADS_PATH=$GLOBALPATH # Present for compatibility with older versions of Allegro. if nvar ALLEGRO_SITE "set ALLEGRO_SITE ." #-------------------------------------------- # Configuration variables ...
佳能单反相机开发包(Canon digital camera SDK)3.9.0版本Canon EOS ED-SDK3.9.0。 09/25/2018 -Added support for the EOS R -Deleted the description of the older model out of support and deleted the ...
A Java library to access Dropbox's HTTP-based Core API v2. This SDK also supports the older Core API v1, but that support will be removed at some point. License: MIT Documentation: Javadocs Setup If ...
2.) Install RTC SDK components in Delphi 3.) Make the RTC SDK accessible from XCode (for iOS development) 4.) Update RTC SDK components in Delphi 5.) Help 6.) Demos 7.) Support *****************...
下面的是MySQL安装的过程,用的可执行文件安装的,详细说明了一下! 1.打开下载的mysql安装文件mysql-5.0.27-win32.zip,双击解压缩,运行“setup.exe“ 2.mysql安装向导启动,按“Next”继续 选择安装类型,有...
【标题】"Older_demo1.zip_c# 养老院_养老院_无边框_登录界面设计" 涉及的是一个基于C#语言开发的养老院管理系统的早期版本,该系统具有独特的无边框登录界面设计,强调用户交互体验的优化。 在C#编程语言中,...
org.eclipse.egit.repository-2.3.1.201302201838-r ,org.eclipse.egit.repository-4.0.1.201506240215-r, ...git插件官网地址:http://wiki.eclipse.org/EGit/FAQ#Where_can_I_find_older_releases_of_EGit.3F
Select "yes" if prompted to copy over an existing one. <br>· Then unregister the older version. Go to start->run and type "regsvr32 -u "<INSTALL_DIR>\DriverStudio\Common\Bin\dsddkenv8.dll" <br...
VST SDK 3.6.12 •The VST 3 API •VST 3 Implementation Helper Classes •AAX, AU and VST 2 wrappers •VST 3 Plug-ins Examples About VST 3 VST 3 is a general rework of the long-serving VST Plug-in ...
必需的OLDER_THAN_NUMBER_OF_DAYS 早于OLDER_THAN_NUMBER_OF_DAYS的软件包将被删除。 必需的TOKEN 具有删除权限的身份验证令牌。 必需的用法示例- name : Clean up packages uses : gps/clean-up-gh-packages@...