Move, backup and start Android panic:could not open D:\java2\android\android-sdk-windows\.android\avdtest.ini problem resolution

Source: Internet
Author: User

Figure Description: Moving, backup after the launch of Android virtual machine appears

Solution to the problem of panic:could not open D:\java2\android\android-sdk-windows\.android\avd\test.ini

A few days ago, I am sorting some files, the previously installed on the Android virtual machine related files deleted, the result of the virtual machine can not be used, so I then reconfigure the development environment of Android, who knows to wait until the decompression is completed, configure the relevant properties of the Android virtual machine, after the creation of a good Who knows but can't run, appears under the Run bar

Panic:could Notopen Djava2androidandroid-sdk-windows.androidavdtest.ini The wrong words as shown:



After seeing this situation, I quickly realized that this is a problem I have encountered before, in the past when the time to solve a lot of hard, I first is the Internet to find whether there and I have had the same problem friends, to find solutions, and finally, I know the reason for this problem: I used the backup utility to back up the system files under C disk to the D:\

Personal important information (do not delete) \ Friends Life "under the folder, the original installation software when the default written to C disk" C:\Documents Andsettings\administrator "document is written to the" D:\ personal important information (do not delete) \ Friend Life " folder, for Android can not open a Chinese-language path of this file, that is, in the running Android virtual machine, because it can not open "d:\ personal information (do not delete) \ Friends Life \.android\avd" file, so the problem arises.

At that time, I was also through the Internet to know to configure the environment variables, namely:

Right-click the "My Computer" icon, select Properties from the menu that pops up, switch to the Advanced tab, click the Environment Variables button, and create a new environment variable in the dialog box that pops up, such as android_sdk_home (not modified to other), with a value of d:\ Androide\android\android-sdk-windows

(assuming we have the SDK on D disk in the directory named Android-sdk-windows).

Next, we restart Eclipse by clicking on the Windows menu and entering Preferneces => Android => Bulid can see the Default debug KeyStore: Where. android\ Automatically created for ADT,
previously this may be d:\ personal important information (do not delete) \ Friend Life \.android\debug.keystore)


Alternatively, you can set the steps to exempt add environment variables by setting the following custom debug KeyStore.

Then rebuild the AVD. Run the program, there should be no problem.

Of course, if this does not work, you can try this:

After the configuration: The environment variable has been set: The Android_sdk_home value is your SDK directory. As my is: variable name android_sdk_home value is D:\AndroidE\android\android-sdk-windows

2. Modify the configuration file in the Eclipse installation directory: Locate the following file: After Eclipseconfiguration.settingsorg.eclipse.ui.ide.prefs Open, add the environment variables that you have just configured later.
As I added: android_sdk_home=d\:\\androide\\android\android-sdk-windows (note slash format)

Such

So it should be done, and the internet says so.
View the current directory of your AVD
1. Copy the entire directory to the C:\Documents and settings\administrator\ directory
2. Modify C:\Documents and Settings\administrator\.android/avd/zte345.ini
The original contents are as follows:
Target=android-8path=d:\ My Documents \.ANDROID\AVD\ZTE345.AVD
Change the path contained inside to
Target=android-8path=c:\documents and SETTINGS\ADMINISTRATOR\.ANDROID\AVD\ZTELUCK.AVD
or copy. Android folder to solve, I have tried these methods, but it does not work here.


Here, I will share some of my experiences with you and hope to help you.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.