日食不会让我的应用程序运行 [英] Eclipse wont let my app run

查看:159
本文介绍了日食不会让我的应用程序运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装应用程序,我做我的手机上。但我不断收到错误

 安装错误:INSTALL_PARSE_FAILED_NO_CERTIFICATES
 

我使用的Eclipse。我以前从来没有看到这个问题。我有我的手机上几百次运行我的应用程序。在我的项目中的任何文件不存在明显的错误。我编辑的清单文件加大了版本,但它没有工作。我打扫我的项目。我卸载了我的应用程序的当前版本,从我的手机。但这一切的工作。

我完全不知道是什么问题。在LogCat中声称,它是我的main.xml文件有问题。

  ERROR / PackageParser(956):##包我的包名没有证件入境RES /布局/ main.xml中;无视!
 

我还没有,所以我不知道,可能是什么问题接触过这个文件。

更新:事情变得更加混乱。在问题发生我将丁基下降了几个PNG文件到绘制文件夹(其中已经有几个)。之后拉我的头发,我明白了这个问题可能是这些文件。我(共5)删除了所有这些,它现在的作品。唯一的问题是我不知道为什么他们搞砸了安装。

解决方案

这似乎是一个相当普遍的问题:<一href="http://$c$c.google.com/p/android/issues/detail?id=830">http://$c$c.google.com/p/android/issues/detail?id=830

一个解决方法是导出签名的软件包和signapk.jar手动签署

逐字:

  

评论26 lucasiturbide,04月14日,   2010大家好。我已经解决了这个   在我的项目通过签署APK与   在debugkey和jarsigner工具   通过Android的工具提供的。

     

只需执行这样的:

 的jarsigner -verbose -keystore&LT; USERHOME&GT; /安卓/ debug.keystore&LT; package.apk&GT; androiddebugkey
 

  

和你将有你好看清新   工作APK仅用于调试   目的。记住,你必须签署   你的APK具有有效签名   在市场发布应用程序

对于调试键与别名androiddebugkey密码为机器人。

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

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.

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.

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.

解决方案

It seems to be a fairly common issue: http://code.google.com/p/android/issues/detail?id=830

A workaround is to export an unsigned package and sign it manually with signapk.jar

Verbatim:

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.

Just execute this:

 jarsigner -verbose -keystore <userhome>/.android/debug.keystore <package.apk> androiddebugkey

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

The password for the debug key with the alias "androiddebugkey" is "android".

这篇关于日食不会让我的应用程序运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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