Android/Eclipse PANIC: Could not open

前端 未结 8 887
有刺的猬
有刺的猬 2020-12-01 05:11

I\'m brand new to Android development and Eclipse so I have just set it all up and I am attempting the Hello World tutorial. Sadly when I try and run the program I get the f

相关标签:
8条回答
  • 2020-12-01 05:11

    I had the same problem, but now its fixed.

    Go to Windows in Eclipse, Windows->preference->run/debug->stringSubstitution-> add variable name as "user.home" Then the value will be your profile path Example: mine is C:\users\sriramk\.android

    Now open the default .android path, copy the content, and paste that content into C:\users\sriramk\.android. Restart Eclipse and now the emulator will open.

    0 讨论(0)
  • 2020-12-01 05:16

    A simple solution,

    Create your avd with normal steps. e.g. avd name is Nexus_One. You will see Nexus_One folder and Nexus_One.ini file at D:\Users\Nathan Smith\.android\avd

    Copy Nexus_One.ini to C:\Users\Nathan Smith\.android\avd

    Try running avd through AVD Manager. It will start the emulator.

    Reason being it works, if you read ini file, you will find path variable as below,

    path=D:\Users\Nathan Smith\.android\avd\Nexus_One.avd path.rel=avd\Nexus_One.avd

    So, when you start emulator, it check the ini and tries to start emulator from path mentioned in path variable.

    Hope this solves your problem.

    0 讨论(0)
  • 2020-12-01 05:16

    Find the .android folder on your cpu. You can find it by going to Window -> Preferences -> Android -> Build, and see the "Default debug keystore:" path location.

    After you find it, move the .android folder to your user root directory - which may be "C:\Users\Nathan Smith\" in your case.

    0 讨论(0)
  • 2020-12-01 05:20

    This has been asked a few times already, try this:

    1. Create a environment variable called: ANDROID_SDK_HOME and set it to C:\Users\Administrator
    2. Open Eclipse > Window > Preferences and click in Run/Debug and String Substitution
    3. Add a new variable called: user.home and set it to C:\Users\Administrator
    4. Create an AVD and run it.
    • Android Emulator can't start, 'cause of wrong folder

    • android emulator error:[2011-08-02 11:14:01 - Emulator] PANIC: Could not open: C:\Users\hallo\.android/avd/myemu.ini

    • I have problem in a emulator

    0 讨论(0)
  • 2020-12-01 05:23

    The AVD manager normally uses the user's profile directory to store AVD files.

    However it failed to find the default profile directory.

    To fix this, please set the environment variable ANDROID_SDK_HOME to a valid path such as "".

    Step 1. (Windows 7 Only... 64-bit version Tested) Go to your start menu, then open the Control Panel.Click System and Security, click System, then open up the Advanced System Settings (on the left). Go to the Advanced Tab, then click Environment Variables.Check your user variables.

    If you don't, find A variable named ANDROID_SDK_HOME with the Value, click new. In the Variable Name box, type in "ANDROID_SDK_HOME" (Without quotes).

    In the Variable Value, type in something like c:/Users/jorge/AppData/Local/Android/Android-sdk. Click OK.Then click OK. Click OK again. Close the Control Panel and restart your computer.

    Try Running SDK or AVD Manager(s) again. Create an AVD and run it.

    0 讨论(0)
  • 2020-12-01 05:25

    The simple solution is to create a symbolic link between your home directory and destination .android directory. The problem is that emulator looks for files on in your home directory.

    mklink /D Link Target 
    

    Probably you can copy .android dir or change a setting.

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