You can find a lot of information on how to install the android development environment on the Internet. The following is a summary of several problems and solutions that often occur during the installation process.
1. RunningProgramThe following error reports are displayed:
Panic: cocould not open: C: \ Documents ents and Settings \ Administrator \. Android/AVD/my_avd.ini
Cause: the default path of the android SDK is c: \ Documents ents and Settings \ Administrator \. If you set the path to your path in the system environment variable, for example, D: \ android.
Solution: (1) Create a New System variable in the environment variable: android_sdk_home = D: \ android_emulator
(2) modify the path of the system variable and add % android_sdk_home %.
Alternatively, you can copy the. Android folder to the C: \ Documents and Settings \ Administrator \ directory.
2 error reports:
Error: cocould not find helloandroid.apk
Cause: JDK installation and configuration problems
Solution: Make sure you have installed JDK correctly.
3. When AVD is running, the message is printed on the console.
Waiting for home ('android. process. acore') to be launched
Cause: this is not an error. You only need to wait for a while .. However, you can also right-click the project and run as --> Android Application.
4. An error occurred while running AVD.
Failed to install helloandroid.apk on device 'emulator-5554! '
Cause: During AVD loading, do not mess up the icons on the existing simulator. Wait until the AVD is fully loaded. If there is a red warning during the process, just run it again.
5. When running the program, the following prompt appears:
Activity not started, its current task has been brought to the front
Cause: This warning indicates that the application is already running on the device, and the system will not kill him, but will move him to the foreground for running.
Solution: You can manually kill the process or edit it.CodeRun again.