开发者

Problem with Android Emulator in Eclipse

I'm having trouble getting Android to work on Eclipse, everything seems to be configured fine, but when I attempt to run my first program I just get this message:

[2011-06-19 01:29:18 - AndroidHello] Automatic Target Mode: Preferred AVD 'Android3.1' is not available. Launching new emulator.
[2011-06-19 01:29:18 - AndroidHello] Launching a new emulator with Virtual Device 'Android3.1'
[2011-06-19 01:29:48 - Emulator] 
[2011-06-19 01:29:48 - Emulator] This application has requested the Runtime to 开发者_运维百科terminate it in an unusual way.
[2011-06-19 01:29:48 - Emulator] Please contact the application's support team for more information.

Does anybody have a clue how to fix this, do I have to unistall and install it all again or is there some quick and simple fix.


I guess , you havent created avd(android virtual device) against your target sdk (3.1). The avd can be created using avd manager in eclipse. Also please revert back with your code ... we can check it for problem area and let you know the solution.


Probably your java code threw an exception, Go here to see the java log

In Eclipse go to Window-->Show View-->Other-->Android-->LogCat


Ensure your android sdk environment is setup correctly: run the android command in your terminal. This should launch the android config UI. Try to launch your emulator instance from there and if they don't work. Create a new one - the old ones might be corrupt. It has happened to me before.


I was also facing same problem while trying to run my app through Emulator(AVD). All the Android settings were default. I tried three things before going ahead and changing any of the default settings or Path.

1) Deleted multiple virtual devices which I created as part of trail and error.

2) Restarted my pc

3) Created new virtual device and launched the app again through Eclipse and ADB.exe was down. So I started ADB.exe by going to C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools and clicked on adb.exe file.

the emulator took 4-5 minutes but I was able to see my App icon. Hope it helps :)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜