RES文件夹不能链接到.apk文件 - > " probl.em解析包" [英] RES folder not linked into .apk -> "probl.em parsing the package"

查看:182
本文介绍了RES文件夹不能链接到.apk文件 - > " probl.em解析包"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关一些奇怪的原因,资源文件夹中是从来没有在导出时它们链接到我的应用程序 - 作为一个结果,当我尝试安装这些apk的,我得到了著名的有分析包有问题错误消息。

For some strange reason, the "res" folder is never linked into my apps when exporting them - as a result, when I try to install these apk's, I get the well-known "there was a problem parsing the package" error message.

在导出过程中,不显示错误消息...:/

During export, no error messages are displayed... :/

编辑: 请注意,我不是指实际设备操作系统版本不匹配的通常被描述问题的问题是 - 因为某些原因,我不ŧ专有技术导出APK(这实际上是一个.zip文件,因为我们知道)不包含在资源子文件夹和往常一样,只有META-INF子文件夹。 ProGuard的禁用,以排除这一可能性的一个可能的原因。因此,出于某种原因,应用程序的资源没有链接到目标.apk文件,和包确实是无效的。有趣的是,调试版本给本地虚拟设备上运行编译得很好,包含了资源子文件夹。
同一来源$ C ​​$ C创建另一台计算机上正确的apk包。的所以,问题似乎是在ADT / Eclipse设置?

please note that I am NOT referring to the often described issue of an actual device OS version mismatch! The problem is that -for some reason I don't know- the exported APK (which is actually a .zip file as we know) does not contain the 'res' subfolder as usual, only the META-INF subfolder. Proguard is disabled to rule that out as a possible cause. So for some reason, the app's resources are not linked into the target .apk, and the package really IS invalid. Interestingly enough, the "debug" version to be run on the local virtual device is compiled just fine and contains the "res" subfolder. The same source code creates a correct .apk package on another computer. So the problem seems to be in the ADT/Eclipse setup?

推荐答案

有一些替代解决这一问题,

There are some alternative to resolve this issue ,

案例1:


  • 转至设备的设置(图标)菜单

  • 安全

  • 设备管理

  • 未知来源

  • 勾未知来源

  • 现在,尝试安装apk文件fil​​e.Hope这将有助于

案例2:

如果设备Android操作系统版本是不符合.apk文件兼容
像.apk文件是建立在最低SDK版本15和SDK目标17(ICS),你有设备版本2.3(姜饼)或任何其他。

If the device Android OS version is not compatible with the .apk file Like .apk file is build in minimum SDK version 15,and SDK target 17(ICS) and you have device version 2.3 (gingerbread) or any other.

我们可以通过改变的Manifest.xml构建版本的任何时间

We can change build version any time through Manifest.xml

<uses-sdk android:minSdkVersion="8" /> // or as per your requirements 

另一件事是,你的设备是不是你的应用程序兼容。就像你有使用一些额外的库或者一些硬件资源这是不是适用于您的设备上运行,因此在这种情况下,你可以得到这个问题。

Other thing is that your device is not compatible for your app. like you have use some additional library or some Hardware resources which is not applicable to run on your device so in that case you can get this issue.

当您在市场中会首先检查设备的兼容性和放大器更新APK;然后让安装,否则您的应用程序将不可见的给您的设备。

While you update your APK in market that will first check device compatibility & then allow to install otherwise your app will not visible for your device.

这篇关于RES文件夹不能链接到.apk文件 - &GT; &QUOT; probl.em解析包&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆