升级versioncode升级失败.pm出问题了.求教

我的瑞星出问题了,求教_瑞星吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:35,848贴子:
我的瑞星出问题了,求教收藏
快试试吧,可以对自己使用挽尊卡咯~◆◆
点瑞星的详细设置一栏,总是弹出对话框,说:
damaged&configuration.please&upgrade&rising&a&new&version.
卡巴斯基,免费反病毒软件,针对PC提供轻巧高效的保护!卡巴斯基免费反病毒软件,保护您免遭网络威胁的侵害!
快试试吧,可以对自己使用挽尊卡咯~◆◆
意思是请升级瑞星到最新版
登录百度帐号推荐应用安装提示错误 [INSTALL_FAILED_OLDER_SDK]的解决方案 - CSDN博客
安装提示错误 [INSTALL_FAILED_OLDER_SDK]的解决方案
原先在1.6rc1上写的程序,拿到1.5的SDK重新编译后却不能用
abd install bin/xxx.apk
安装上去,提示错误是:
Failure [INSTALL_FAILED_OLDER_SDK]
找了一下,是这个原因:
打开源码目录下的AndroidManifest.xml文件,然后注释掉或者删除掉这行:
&&&& &uses-sdk android:minSdkVersion=&4& /&
另一篇文章:
通过在manifest中添加.uid.system和在Android.mk中添加LOCAL_CERTIFICATE := platform,然后MMM以次特权。但是我通过MMM编译出来的APK不能在提供的SDK中创建的AVD里安装,提示Failure [INSTALL_FAILED_OLDER_SDK]
解决方法:
/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)
& & DEFAULT_APP_TARGET_SDK := $(PLATFORM_VERSION_CODENAME)
将DEFAULT_APP_TARGET_SDK直接赋值相应的API等级即可。
另一篇文章:
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 + &)&;&
&&& outError[0] = &Requires development platform & + minCode&
&&& + & but this is a release platform.&;&
mParseError = PackageManager.INSTALL_FAILED_OLDER_SDK;&
} else if (minVers & SDK_VERSION) {&
&&& outError[0] = &Requires newer sdk version #& + minVers&
&&& + & (current version is #& + SDK_VERSION + &)&;&
&&& mParseError = PackageManager.INSTALL_FAILED_OLDER_SDK;&
&&&&&&&&&&&&&&&&&&&&
if (targetCode != null) {&
&&& if (!targetCode.equals(SDK_CODENAME)) {&
if (SDK_CODENAME != null) {&
&&& outError[0] = &Requires development platform & + targetCode&
&&& + & (current platform is & + SDK_CODENAME + &)&;&
&&& outError[0] = &Requires development platform & + targetCode&
&&& + & but this is a release platform.&;&
mParseError = PackageManager.INSTALL_FAILED_OLDER_SDK;&
&&& // If the code matches, it definitely targets this SDK.&
&&& pkg.applicationInfo.targetSdkVersion&
&&& = android.os.Build.VERSION_CODES.CUR_DEVELOPMENT;&
&&& pkg.applicationInfo.targetSdkVersion = targetV&
结论:只有apk无源代码,无解。
本文已收录于以下专栏:
相关文章推荐
错误描述如下:$ adb install ./app/build/outputs/apk/app-debug.apk
2999 KB/s (8256380 bytes in 2.688s)
转自installation failed with message invalid file
我在运行一个Android项目时,模拟机启动时老是出现 [ 17:10:10 - bus1] Installation failed due to invalid APK file...
文章目录:
- 封装成果
- 封装细节
- 如何使用
- 作者前言写在前面Flyabbit是一个使用Retrofit+Rxjava2+dagger2+Mvp+Mate...
代码覆盖率我们都知道,了解过jacoco也知道如何去弄,那么我们想要在跑UI自动化脚本的时候如何收集脚本执行过程中的代码覆盖率呢?首先我们知道jacoco可以得到测试的代码覆盖率,那么如果这些单测是U...
亲爱的,好想你,好想好想,恨不得撕开自己的心脏,好好看看你在我心脏的哪个角落。  你知道么,亲爱的,最近我压力好大,什么都不敢说,怕你说我矫情。工作的,朋友的,金钱的,父母的,无论什么都不称心,即便是...
之前的覆盖率方法,是不可控的,今天我们来看看思寒说的方式,dump覆盖率的数据。参考文章
加入代码覆盖率的文件从参考文章中下载文件,解压缩后有4个文件:.
├── EmmaInstrumentatio...
解决对策:
        
        1.删除bin/res
   &#160...
最近看好多人在使用Android studio开发工具、这个是google2013年开发者大会上公布的新的Android开发
他的最新文章
讲师:吴岸城
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)

我要回帖

更多关于 gradle version 升级 的文章

 

随机推荐