[英]First android app won't install
我已按照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 Home Premium 64-bit
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
等待仿真器完全启动,然后再启动。 1.通过Project-> clean清理项目2.然后右键单击项目Run As-> Android应用程序尝试上述操作并回复发生的情况
模拟器是否显示在“设备”选项卡下
窗口->显示视图->设备
尝试启动您的AVD管理器...并在其中选中“擦除用户数据”复选框...并从eclipse重新启动您的应用程序...尝试一下并判断其是否有效
我仍然不确定是什么问题。 最初,我将现有的Eclipse IDE用于Android开发。
从http://developer.android.com/sdk/index.html下载完整ADT可以解决此问题。 这使我相信该SDK与我的旧Eclipse不能很好地配合使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.