开发者

running an android app on IntelliJ

I have IntelliJ IDEA 9 setup successfully including all the Java SDKs necessary and the Android SDK too.

I created a simple project and to run it, I went to the Configurations to setup a virtual device. Device was created successfully but when I'm trying to run the app, nothing happens. The console shows the following:

Waiting for device.
"C:\Program Files\Android\android-sdk\tools\emulator.exe" -avd MyAvd0 -netspeed full -netdelay none

but no devices are shown... Am I 开发者_高级运维missing something? The JetBrains wiki doesn't say anything special as far as I read...


IntelliJ IDEA 9 is too old and doesn't support new Android SDK versions. You can find workarounds in the issue linked above, but it's recommended to use the latest IDEA version.

Long SDK path with spaces may also introduce problems.


Have you read and followed the guide on Setting up a Device for Development - it'll lead you through all the steps necessary. A quick check to see if your device is being recognised by your computer is to go to the DOS prompt, assuming you have your paths set up correctly, and type 'adb devices' - this will either show you that the device is connected - mine looks like this

martyn@ubuntu:/$ adb devices
List of devices attached 
353406EE22EB00EC        device
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜