简体   繁体   English

android问题

[英]android question

I am trying to run Apidemos sample on my PC. 我试图在我的PC上运行Apidemos示例。 for that fst i hav launched AVD nd then run tht Apidemos app.. but it is giving me following errors... 为此,我已经启动了AVD,然后运行Apidemos应用程序..但这给了我以下错误...

[2010-10-16 10:33:43 - ApiDemos] Performing com.example.android.apis.ApiDemos activity launch
[2010-10-16 10:33:44 - ApiDemos] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'apidemoavd'
[2010-10-16 10:33:44 - ApiDemos] **WARNING: Application does not specify an API level requirement!**
[2010-10-16 10:33:44 - ApiDemos] **Device API version is 7 (Android 2.1-update1)**
[2010-10-16 10:33:44 - ApiDemos] Uploading ApiDemos.apk onto device 'emulator-5554'
[2010-10-16 10:33:52 - ApiDemos] **Failed to upload ApiDemos.apk on device 'emulator-5554'**
[2010-10-16 10:33:52 - ApiDemos] **java.io.IOException: Unable to open sync connection!
[2010-10-16 10:33:52 - ApiDemos] Launch canceled!**

To fix the API level warning, check uses-sdk element . 要修复API级别警告,请检查uses-sdk元素

The failure seems to be caused by a disconnected device. 该故障似乎是由断开的设备引起的。 Remember that you should allow USB debugging . 请记住,您应该允许USB调试

Try the steps recommended in the documentation: Eclipse isn't talking to the emulator 请尝试文档中建议的步骤: Eclipse不在与仿真器通信

Let us know if that works. 让我们知道是否可行。 There are several more things that can be done if that doesn't work. 如果不起作用,还有更多的事情可以做。

Please: 请:

  1. Open the SDK manager 打开SDK管理器
  2. Then download the latest APIs and API Tools from here 然后从此处下载最新的API和API工具
  3. Then you need to start new AVD using one of the downloaded APIs 然后,您需要使用下载的API之一启动新的AVD

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

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