Eclipse不会让我的应用程序运行 [英] Eclipse wont let my app run
问题描述
我正在尝试安装我在手机上制作的应用程序。但是我不断收到错误
I'm trying to install the app I making on my phone. But I keep getting an error
Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES
我正在使用Eclipse。我从来没有见过这个问题。我在手机上运行了我的应用程序数百次。在我的项目的任何文件中都没有明显的错误。我修改了清单文件升级版本,但它没有工作。我清理了我的项目。我从我的手机卸载了我的应用程序的当前版本。但是没有一个有用。
I'm using Eclipse. I've never seen this problem before. I have run my app on my phone hundreds of times. No apparent errors exist in any files of my project. I edited the Manifest file upping the version, but it didnt work. I cleaned my project. I uninstalled the current version of my app from my phone. But none of this works.
我完全不知道问题是什么。 LogCat声称这是我的main.xml文件的一个问题。
I have absolutely no idea what the problem is. The LogCat claims it is a problem with my main.xml file.
ERROR/PackageParser(956): Package ##MY PACKAGE NAME has no certificates at entry res/layout/main.xml; ignoring!
我没有碰到这个文件,所以我不知道可能是什么问题。
I havent touched this file so I dont know what could be the problem.
更新:事情变得更加混乱。在发生问题之前,我将几个png文件拖放到可绘制的文件夹(其中已经有几个)。拉我的头发出来之后,我的问题可能是这些文件。我全部删除了(总共5个),现在工作。只有问题我不知道为什么他们搞砸了安装。
UPDATE: Things got more confusing. Before the problem occured I drag-n-dropped a few png files into the drawable folder (where there are already a few). After pulling my hair out it dawned on me the problem might be these files. I deleted them all (5 in total) and it works now. Only problem is I dont know why they screwed up installation.
推荐答案
似乎是一个相当常见的问题: http://code.google.com/p/android/issues/detail?id=830
It seems to be a fairly common issue: http://code.google.com/p/android/issues/detail?id=830
解决方法是导出未签名的包,并使用signapk.jar手动签名
A workaround is to export an unsigned package and sign it manually with signapk.jar
Verbatim:
评论26由lucasiturbide,4月14日,
2010嗨所有人。我已经在我的项目中解决了这个
,通过使用
的debugkey和android工具提供的jarsigner工具
签署APK。
Comment 26 by lucasiturbide, Apr 14, 2010 Hi everybody. I have solved this in my project by signing the APK with the debugkey and the jarsigner tool provided by android tools.
只需执行此操作:
jarsigner -verbose -keystore <userhome>/.android/debug.keystore <package.apk> androiddebugkey
你会有你的新鲜和
工作apk只用于调试
的目的。记住,你必须签署
您的APK有效的签名
发布您的应用程序在市场上
and you will have your nice fresh and working apk for debugging only purpose. Remember you have to sign your APK with a valid signature to publish your application at the Market
具有别名androiddebugkey的调试密钥的密码为android。
The password for the debug key with the alias "androiddebugkey" is "android".
这篇关于Eclipse不会让我的应用程序运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!