Trouble getting Android emulator to run in eclipse

前端 未结 17 2423
失恋的感觉
失恋的感觉 2020-12-15 05:23

I\'m trying to run the SDK Samples on the Emulator in Eclipse 3.5.

Most of the time the AVD Manager hangs when I try to create a new AVD. When I manage to create an

相关标签:
17条回答
  • 2020-12-15 05:28

    You have to use Android tool from sdk\tools folder to move your AVD device to some Folder with no foreign characters in the path.

    Just type android move avd -n "nameofdevice" -p "newpath"

    For example: android move avd -n HTDDESIRE -p C:\HTCDESIRE

    0 讨论(0)
  • 2020-12-15 05:29

    This solved it for me on IOS: I looked in the actual .ini file for the device (Nexus-7-inch-tablet.ini) which looked like:

    avd.ini.encoding=ISO-8859-1
    target=android-17
    path=/Users/stevensanborn/.android/avd/Nexus-7-inch-tablet.avd
    path.rel=avd/Nexus-7-inch-tablet.avd
    

    and removed and extra return space in the file. Resaved it and worked. Ridiculous.

    0 讨论(0)
  • 2020-12-15 05:31

    I also had the same problem since my username was in Cyrilic letters Димитров.

    I change it to a latin alphabet and then it's OK.

    0 讨论(0)
  • 2020-12-15 05:33

    move c:\Users\YourName\.android\avd\YourAVDName.avd manually to c:\Android\YourAVDName.avd then open c:\Users\YourName\.android\avd\YourAVDName.ini and change path from path=c:\Users\YourName\.android\avd\YourAVDName.avd to path=c:\Android\YourAVDName.avd

    0 讨论(0)
  • 2020-12-15 05:37

    You can set the environment variable ANDROID_SDK_HOME. For example:

    ANDROID_SDK_HOME=D:\Development\android-sdk\
    

    It helped me. Add this variable to <eclipseFolder>\configuration\.settings\org.eclipse.ui.ide.prefs:

    ANDROID_SDK_HOME=D\:\\Development\\android-sdk\\
    

    Stop the process adb.exe and (re)start Eclipse.

    0 讨论(0)
  • 2020-12-15 05:39

    To make sure everything is installed correctly, I recommend you reinstall all the components. To be sure everything goes correctly follow my step by step instructions on my blog.

    http://androidcodemonkey.blogspot.com/2010/01/how-to-setup-android-development_23.html

    If you follow all the steps you should be good to go!

    Good luck.

    0 讨论(0)
提交回复
热议问题