安卓APK签名显示不完整 [英] Android Signed APK showing incomplete

查看:284
本文介绍了安卓APK签名显示不完整的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经签署了使用Eclipse的导出向导的应用程序。当我出版了这一点,用户就开始抱怨了该应用程序的行为不正确。 (基本上,APK没有必要图片及音频,从而显示出不正确的行为)。

I have signed the application using Eclipse's Export Wizard. When I published this, users started complaining that the application is behaving incorrectly. (Basically, the APK did not have necessary images & audio and hence showing incorrect behaviour).

这是我试过的应用和签名的信息。

Some information on Application and Signing which I have tried.

  1. 在我有一个精简版版和付费版。两者都使用相同的密钥对签名。精简版的版本是工作完美,完整版是给错误。
  2. 在我试图再次导出已签名的软件包,并试图直接在设备安装(而不是上传到市场)。相同的行为(即精简版的应用程序工作正常并且完整版不正确的)
  3. 在这两种完全版和精简版版本使用的共享库(code群是一致的。差异如下:
  4. 在完整版本有精简版的版本5倍的资源。精简版的版本APK是〜2.6MB和完整版〜10.4MB。 在完整版中我有170图像(主要是PNG的5-10 KB),并〜55mp3文件。在精简版的版本,我有45图像和15的MP3
  5. 在完整版本已拉特(许可证验证)来实现,并精简版版本亘古不变的。一旦LVL通过,code只是调用库类
  6. 如果我使用Eclipse来构建和部署完整版的手机(或仿真器),它工作正常。 (我想这构建和部署将使用调试密钥签名)
  7. 在我有在code错误处理,以显示code表现出dummypic(问号),如果资源丢失。我的所有图像都替换为问号。我想补充。这dummypic是图书馆和所有其他资源(图片)是完整版本。
  8. 我已经通过重命名签署apk文件为.zip(感谢NickT的建议这种方法)检查​​资源。所有的资源文件(音频和图像)是present在zip文件。
  1. I have a lite version and paid version. Both are signed with same keypair. The lite version is working perfectly and full version is giving error.
  2. I have tried to export the signed packages again and tried to install directly in device (instead of uploading to market). Same behaviour (i.e Lite apps works correctly and full version not proper)
  3. Both Full Version and Lite Version uses shared Library (Code base is identical. Differences as follows.
  4. Full Version has 5 times the resources of lite version. The lite version apk is ~2.6MB and full version is ~10.4MB. In Full Version I have 170 images (mostly png's of 5-10 KB) and ~55mp3 files. In Lite Version I have 45 images and 15 mp3s
  5. Full Version has LVL (License Verification) implemented and Lite Version doesnot. Once LVL is passed, the code simply calls the Library Class
  6. If I use Eclipse to build and deploy full version to phone (or emulator), it works correctly. (I guess this build and deploy will use debug key for signing)
  7. I have error handling within the code to show code to show a dummypic (a question mark) if resource is missing. All my images are replaced with that question mark. Just to add.. This dummypic is in the Library and all other resources(images) are in Full Version.
  8. I have checked the resources by renaming the signed apk file to .zip (thanks to NickT for suggesting this approach). All resource files (audio and images) are present in the zip file.

任何帮助是AP preciated。该应用程序已在市场上,因此要尽量减少负面影响。

Any help is appreciated. The application is already in market and hence would like to minimise adverse impact.

删除拉特。还是同样的错误

试过评论拉特code和直接调用的意图。还是同样的错误。 通过注释的LVL,为精简版和完整版的code的基础是相同的。仅种源数是不同的。完整的版本有精简版版本的所有资源+〜5次资源。

Tried commenting the LVL code and directly calling the intent. Still same error. By commenting the LVL, the code base for Lite and Full Version is identical. Only the resouce count is different. The full version has all the resources of Lite Version + ~5times the resource.

更新 这就是我临时固定它。 我删除了库项目,并感动了所有的类和资源,实施项目(完整版)。现在,这是工作。

Update This is how I temporarily fixed it. I removed the library project and moved all classes and resources to the Implementation Project (Full Version). Now it is working.

至于说,这只是一个临时的修复。我还需要知道我怎么能与库解决此问题。否则我将不得不创造出很多code重复。

As said, this is a temp fix only. I still need to know how I can fix this with library. Else I will have to create a lot of duplication of code.

推荐答案

我的选择将是它必须做的权限的。 正在安装第一个应用程序,将具有读写权限到该文件夹​​,其他的不会。

My bet would be that it has to do with permissions. The app that is being installed first, will have read-write permissions to that folder, the other will not.

请尝试使用的ContentProvider ,以使您的图片入店的这两个应用程序!

Try using a ContentProvider to make your images accesible for both apps!

这篇关于安卓APK签名显示不完整的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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