应用程序将无法启动设备上 [英] app will not launch on device

查看:183
本文介绍了应用程序将无法启动设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是小白到Java,Eclipse和Android应用程序的开发。我会通过 Android应用教程却可以'吨似乎得到的第一课推出我的设备上。固定问题$ P $进行编译pventing该项目屈指可数后,我能得到它在一个AVD运行。但是有一个物理设备上没有运气。下面是我的环境的细节,什么控制台显示我。

I'm a noob to Java, Eclipse and Android application development. I'm going through the Android app tutorial but can't seem to get the first lesson to launch on my device. After fixing a handful of issue preventing the project from compiling I was able to get it to run on an AVD. But have had no luck on a physical device. The following are the details of my environment and what the console shows me.

在我试图寻找在手机上安装的应用程序下,下载和桌面却看不到它。

On the phone I tried looking for the install under apps, downloads and the desktop but don't see it.

计算机:Windows XP中

Computer: Windows XP

设备:三星GALAXY Nexus运行Android 4.1,核心3.036-04142-gfa7dc12脏

Device: Samsung Galaxy Nexus running 4.1, kernel 3.036-04142-gfa7dc12-dirty

开发ENV:Eclipse的朱诺

Dev Env: Eclipse Juno

控制台:

[2012-07-10 13:35:11 - MyFirstProject] ------------------------------
[2012-07-10 13:35:11 - MyFirstProject] Android Launch!
[2012-07-10 13:35:11 - MyFirstProject] adb is running normally.
[2012-07-10 13:35:11 - MyFirstProject] Performing com.example.myfirstapp.MainActivity activity launch
[2012-07-10 13:35:14 - MyFirstProject] Uploading MyFirstProject.apk onto device '014994321500300C'
[2012-07-10 13:35:14 - MyFirstProject] Installing MyFirstProject.apk...
[2012-07-10 13:35:14 - MyFirstProject] Success!
[2012-07-10 13:35:14 - MyFirstProject] Starting activity com.example.myfirstapp.MainActivity on device 014994321500300C


感谢您的快速反应。


Thanks for the quick responses.

我的手机是调试时从Eclipse中可见。我没有专门安装我这样做在机器上三星驱动程序。检查设备管理器,我看到手机是不能被Windows正确识别。因为我已经安装了驱动程序,现在可以通过在命令提示符下执行在手机上的操作(例如,亚行重新启动)。

My phone is visible from Eclipse when debugging. I hadn't specifically installed the Samsung driver on the machine I'm doing this on. Checking Device Manager I saw the phone was not recognized properly by Windows. I have since installed the driver and can now perform actions on the phone through the command prompt (e.g. adb reboot).

在安装驱动程序后,我重新启动我的电脑和手机。不幸的是,默认的意图仍然没有在手机上,因为它使用的是AVD时不加载。我很乐意使用AVD却是pretty在我的电脑慢加拿着它在你的手中(这是更真实),它只是凉爽。 :)

After installing the driver I rebooted my pc and phone. Unfortunately the default intent still does not load on the phone as it does when using an AVD. I'd be happy using the AVD but it is pretty slow on my pc plus it's just cooler to hold it in your hands (it's more real). :)

推荐答案

有关谷歌的Nexus设备,你应该从这里下载谷歌USB驱动程序:
http://developer.android.com/sdk/win-usb.html
安装本(从Android SDK中经理)后只需重新启动Eclipse和它应该认识到,你的物理设备上安装APK

For google Nexus devices you should download Google USB Driver from here: http://developer.android.com/sdk/win-usb.html After installing this(from android sdk manager) just restart eclipse and it should recognize and install the apk on your physical device

这篇关于应用程序将无法启动设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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