Trouble getting Android emulator to run in eclipse

前端 未结 17 2424
失恋的感觉
失恋的感觉 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:39

    Another consideration I may have overlooked in others answers - I see you mentioned Eclipse 3.5 - consider using 3.5.2 (the current latest version)

    May not matter, may have just been omitted by you, either way using the most up to date stuff never hurts.

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

    If you have installed the Android SDK to a different drive ie not C: then you might need to set the ANDROID_HOME environment variable to the location of the SDK installation

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

    Another rather simple solution to this problem (non-english characters in the AVD's path), is to use the "shortname" of the directories. In my case:

    My windows user is "András", so my homedir is C:\Users\András

    If you open up a cmd, cd to C:\Users, and issue a "dir /x" command, you will see the "shortnames" of the directories, in my case it is "ANDRS~1".

    So you just change the path in the AVD's config file from C:\Users\András\blabla to C:\Users\ANDRS~1\blabla, and voila, it works.

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

    I had the same error. What I found was that I was missing ARM EABI v7a System Image.

    I fixed it by opening the Android SDK Manager (The tool bar button looks like a little white arrow in a gray box with green android head)

    I checked the missing system image and clicked the install button.

    See this topic.

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

    I agree with Zian, something is seriously wrong here and you should consider reinstalling. Also make sure of the following:

    1) Make sure your avd folder looks sane. This can be found in the .android directory in your home directory. Look in ~\.android\avd\<name-of-avd>.avd\ and you should see config.ini and userdata.img files, plus an sd image if you created one. Make sure your config.ini looks something like this:

    hw.sdCard=yes
    hw.dPad=yes
    hw.accelerometer=yes
    hw.lcd.density=160
    skin.name=HVGA
    skin.path=platforms/android-1.6/skins/HVGA
    hw.trackBall=no
    hw.ramSize=256
    image.sysdir.1=platforms/android-1.6/images/
    

    Or, if you don't have any custom settings, then it will just consist of this one line:

    hw.lcd.density=160
    

    2) Make sure you have the latest version of the ADT Eclipse plugin (v0.95).

    3) Also, you really truly shouldn't have any permissions problems within your home directory, but hey, it's Windows -- you never know. So you may want to manually set the permissions to the avd/ folder to read/write/execute, just to be sure.

    4) Other than that, reinstall with extreme prejudice!

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

    The problem here is that my c:\users... path has foreign characters in it "Michael Schøler" - the "ø" being the problem.

    This is an ecclipse and/or Android SDK problem.

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