MAC Environment:
Android Studio 0.8.14
JDK 1.7
ADT Version 21
Ready to build android5.0 development environment today
Android Studio0.8.14 Android Studio 0.8.14
Latest releases of Google, some new improvements
Start Android Studio
Build a project, and rest assured that you cannot build success into the user directory. gradle/wrapper/dists/
Gradle-2.1-all directory, and possibly other versions of the directory
gradle.org download Gradle-2.1-all.zip file, there are other directories, just download other versions
then copy the corresponding download version to, gradle-2.1-all/xxxxxxxxxxxxxxx/directory, unzip, complete.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/53/68/wKioL1RmGx7DF22HAAdigkFz7uA393.jpg "title=" Gradle.png "alt=" Wkiol1rmgx7df22haadigkfz7ua393.jpg "/>
Restart Android Studio, build the project, find the need to download a lot of jcenter domain names under the things, wait.
Build project Success, Android 5.0 compilation requires JDK 7.0
Download MAC JDK 1.7, install. Java-verison correct display
Setting up the JDK directory in Android studio
The SDK location is set to:/library/java/javavirtualmachines/jdk1.7.0_71.jdk/contents/home
First check your JDK directory is not this connection, if not, there may be
/system/library/java/javavirtualmachines/1.6.0.jdk/contents/home
Now, you can compile Android 5.0.
MAC Android Studio 5.0 Environment Setup