简体   繁体   English

“找不到MyFirstApp.apk!”错误

[英]“Could not find MyFirstApp.apk!” Error

I don't understand really what's going on. 我真的不明白发生了什么。 I followed the basic android "Hello World" program tutorial on Google's website. 我在谷歌的网站上关注了基本的android“Hello World”程序教程。 I made basically no alteration to any code... I just ran it... and it's not running. 我基本上没有改变任何代码...我只是运行它...它没有运行。 The following occurs in the console each time I run the program: 每次运行程序时,控制台中都会出现以下情况:

[2013-05-27 11:44:46 - MyFirstApp] ------------------------------
[2013-05-27 11:44:46 - MyFirstApp] Android Launch!
[2013-05-27 11:44:46 - MyFirstApp] adb is running normally.
[2013-05-27 11:44:46 - MyFirstApp] Could not find MyFirstApp.apk!

So, what am I supposed to do? 那么,我该怎么办? Did I not install something correctly? 我没有正确安装吗? I thought I did, but it's a complicated installation so I'm not certain how to go about this. 我以为我做了,但这是一个复杂的安装,所以我不确定如何去做。

If someone could just explain what the error message means... that could help a ton. 如果有人能够解释错误信息意味着什么......这可能会有所帮助。

Your project is probably the library project. 您的项目可能是图书馆项目。

Unselect "Is Library" in project's properties Android section. 在项目的属性Android部分中取消选择“Is Library”。

It is because there is no MyFirstApp.apk that the adb can upload in the simulator or device. 这是因为adb可以在模拟器或设备中上传MyFirstApp.apk。 Just clean the application and build it again from Project>Clean and then Project>Build All . 只需清理应用程序并从Project> Clean再次构建它,然后再选择Project> Build All The MyFirstApp.apk will be created. 将创建MyFirstApp.apk。

And then try to run your application. 然后尝试运行您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM