简体   繁体   English

android应用未安装,eclipse juno

[英]android app not installing, eclipse juno

I'm using Eclipse IDE for Java EE Developers. 我正在为Java EE开发人员使用Eclipse IDE。 I created my first android application project, and it's supposed to display the Hello World message, but I run it and get nothing(well, the emulator starts but then nothing), no console output view, no error.If I run it again the console appears(...WARNING: Data partition already in use. Changes will not persist!) and the emulator opens in new window but again nothing Please tell me what's wrong and how to install and run the app? 我创建了我的第一个android应用程序项目,它应该显示Hello World消息,但是我运行它却什么也没得到(好吧,模拟器启动了,但随后什么也没有),没有控制台输出视图,也没有错误。控制台出现(...警告:数据分区已在使用。更改将不会持续!),模拟器将在新窗口中打开,但是再次没有任何提示。请告诉我出了什么问题以及如何安装和运行该应用程序? after first run(pic1&2), after second run (pic3) 第一次运行后(pic1&2),第二次运行后(pic3) 首轮

仿真器

第二次

Reset/Restart the adb server . 重置/重新启动adb服务器 You should do that over the command line. 您应该在命令行上执行此操作。 Make sure that you are in your /android-sdk-root/platform-tools directory. 确保您位于/android-sdk-root/platform-tools目录中。

adb kill-server
adb start-server

运行应用程序时,您将在“ bin”文件夹下看到.apk文件。

wait! 等待! As far as i can make out, you're just launching the emulator. 据我所知,您只是在启动模拟器。 Isn't it? 是不是 there's a green button at the top. 顶部有一个绿色按钮。 (like a "play" button) just press it. (例如“播放”按钮)即可。

Or right click on the project you want to run, and click on "run as > android application" and watch the emulator play your app. 或右键单击要运行的项目,然后单击“运行方式> android应用程序”,然后观看模拟器播放您的应用程序。

It sounds like the emulator is already running and you are launching a new instance of it... based on the log it has been launched earlier and perhaps it hasn't shut down properly. 听起来仿真器已经在运行,并且您正在启动它的新实例...根据先前启动的日志,也许它没有正确关闭。

-Restart adb as poitroae suggested in an earlier answer. -按照poitroae的建议重新启动adb。

-If that doesn't help, restart Eclipse. -如果这样做没有帮助,请重新启动Eclipse。

-If that doesn't help, restart your computer. -如果这样没有帮助,请重新启动计算机。

If you're still having issues after that, post back. 如果在那之后您仍然遇到问题,请发回。

try to clean your project from project-> clean and also donot forget to wipe user data on android emulator... here is some good discussion about your problem... 尝试从project-> clean清理项目,也不要忘记在android模拟器上擦除用户数据...这里是关于您的问题的一些很好的讨论...

Using Eclipse for androidSDK, when I go to run, I get WARNING: Data partition already in use. 在运行时使用Eclipse for androidSDK,我会得到警告:数据分区已在使用中。 Changes will not persist! 变化不会持续!

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

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