Android development environment to build and simulation environment to build

Android development environment

Now the mainstream Android development environment are:

  • Eclipse + ADT + SDK
  • Android Studio + SDK
  • IntelliJ IDEA + SDK

Now most of the domestic developers still use the Eclipse, while Google announced the Retired ADT, the official website and also removed the download link integrated Eclipse Android development environment, developers have expressed various phenomena will eventually end up the transition to Android Studio, Of course, during this transition period will be very long.

Android it is said to be just learning if the proposed direct red Android Studio started, so I downloaded the Android Studio.

Android simulation environment

Android in learning and development process, often to the Android emulator that comes with Android SDK and third-party Genymotion Andrews simulator.

  • Comes with emulator
    • Pros: Support section hardware operations, also supports text messaging phone features.
    • Disadvantages: slow, but fortunately, the new version has improved a lot.
    • The crowd: computer configuration developers to cross the border, or the card to cry.
  • Genymotion simulator
    • Advantages: speed, the computer configuration requirements low.
    • Cons: Free version does not support basic hardware operations, well aware of SMS phone functions are not supported.
    • The crowd: beginner, advanced functionality with less than a place can be used.

android studio installation tutorial

JDK Installation and Configuration

android studio installation tutorial

Android emulator installed Genymotion

Detailed installation tutorial

Problems encountered:

After installing the Android Studio, start the Android emulator AVD when open.
Error message is:

Emulator: Process finished with exit code 1
Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT

Analysis :
message meant to say "avd system path not found", define ANDROID_SDK_ROOT, in fact, need to define a "avd" path to us.

Remedy : Remove all the AVD in the mirror. In the system environment variable settings:

ANDROID_HOME:这是sdk的路径
ANDROID_SDK_HOME:这是avd的路径,先设置成这样,里面是空的文件夹,当我们下载avd的时候会自动使用上面配置的路径。
然后重启 Android Studio ,
重新下载一个镜像,再次打开avd的时候,它居然好了!!!!!!


终于搭建好了,安卓自带的 Android SDK 模拟器和第三方 Genymotion 安卓模拟器都可以正常使用。太不容易了。。。

Guess you like

Origin www.cnblogs.com/yangdd/p/12298565.html