0

我已按照http://developer.android.com/training/basics/firstapp/running-app.html上的说明进行操作

我似乎无法安装该应用程序。

我的控制台输出:

[2013-03-30 12:30:41 - MyFirstApp] Android Launch!
[2013-03-30 12:30:41 - MyFirstApp] adb is running normally.
[2013-03-30 12:30:41 - MyFirstApp] Performing com.example.myfirstapp.MainActivity     activity launch
[2013-03-30 12:30:41 - MyFirstApp] Automatic Target Mode: launching new emulator with     compatible AVD 'AVD_for_Nexus_S_by_Google'
[2013-03-30 12:30:41 - MyFirstApp] Launching a new emulator with Virtual Device 'AVD_for_Nexus_S_by_Google'

如所见,没有“正在安装 apk”消息,或任何表明 Eclipse 正在将我的应用程序加载到模拟器上的信息。一旦启动,我也无法在模拟器上找到我的应用程序。

在以下配置下运行此项目:

操作系统:Windows 7 家庭高级版 64 位

Eclipse 版本:Indigo 发布

Android开发工具包版本:21.1.0.v201302060044-569685

我该如何解决?

编辑:来自 logcat 的日志显示以下内容。这是正常的吗?

03-30 08:41:48.010: W/Trace(779): Unexpected value from nativeGetEnabledTags: 0
03-30 08:41:48.039: I/Choreographer(779): Skipped 50 frames!  The application may be doing too much work on its main thread.
03-30 08:41:48.079: W/Trace(779): Unexpected value from nativeGetEnabledTags: 0
03-30 08:41:48.079: W/Trace(779): Unexpected value from nativeGetEnabledTags: 0
4

4 回答 4

1

Wait for the emulator fully started up and then. 1.Clean your project by Project->clean 2.Then right click project Run As-> Android application Try the above and reply whats happening

于 2013-03-30T07:19:54.887 回答
0

您的模拟器是否显示在“设备”选项卡下

窗口->显示视图->设备

于 2013-03-30T07:17:10.793 回答
0

try to launch your AVD manager...and in it check the wipe user data checkbox...and relaunch your app from eclipse...give it a try and tell if it works

于 2013-03-30T08:08:50.317 回答
0

I'm still not sure what the problem was. I was initially using my existing Eclipse IDE for Android development.

Downloading the Full ADT from http://developer.android.com/sdk/index.html fixed the problem. Which leads me to believe that the SDK was not playing nicely with my old Eclipse.

于 2013-04-07T06:18:33.143 回答