Installing Android Studio
- Download the Android Studio package from above.
- Install Android Studio and the SDK tools:
Windows:
- Launch the downloaded EXE file,
android-studio-bundle-<version>.exe
. - Follow the setup wizard to install Android Studio.
Known issue: On some Windows systems, the launcher script does not find where Java is installed. If you encounter this problem, you need to set an environment variable indicating the correct location.
Select Start menu > Computer > System Properties > Advanced System Properties. Then open Advanced tab > Environment Variables and add a new system variable JAVA_HOME
that points to your JDK folder, for exampleC:\Program Files\Java\jdk1.7.0_21
.
Mac OS X:
- Open the downloaded DMG file,
android-studio-bundle-<version>.dmg
. - Drag and drop Android Studio into the Applications folder.
Known issue: Depending on your security settings, when you attempt to open Android Studio, you might see a warning that says the package is damaged and should be moved to the trash. If this happens, go to System Preferences > Security & Privacy and under Allow applications downloaded from, select Anywhere. Then open Android Studio again.
Linux:
- Unpack the downloaded Tar file,
android-studio-bundle-<version>.tgz
, into an appropriate location for your applications. - To launch Android Studio, navigate to the
android-studio/bin/
directory in a terminal and execute studio.sh
.You may want to add android-studio/bin/
to your PATH environmental variable so that you can start Android Studio from any directory.
That's it! You're ready to start developing apps with Android Studio.
Note: On Windows and Mac, the individual tools and other SDK packages are saved within the Android Studio application directory. To access the tools directly, use a terminal to navigate into the application and locate the sdk/
directory. For example:
Windows: \Users\<user>\AppData\Local\Android\android-studio\sdk\
Mac: /Applications/Android\ Studio.app/sdk/
For a list of some known issues, see tools.android.com/knownissues.
Starting a Project
When you launch Android Studio for the first time, you'll see a Welcome screen that offers several ways to get started:
- To start building a new app, click New Project.
This starts the New Project wizard, which helps you set up a project using an app template.
- To import an existing Android app project, click Import Project.
Note: If you previously developed your Android project with Eclipse, you should first use the new export feature in the ADT plugin to prepare your project with the new Gradle build system. For more information, read Migrating from Eclipse.
For additional help using Android Studio, read Tips and Tricks.
As you continue developing apps, you may need to install additional versions of Android for the emulator and other packages such as the Android Support Library. To install more packages, use the SDK Manager, which you can open from Android Studio by clicking SDK Manager
in the toolbar.
菜鳥日記1-20130604 :
如何在沒有安裝過JAVA的WIN7 32位系統里安裝和配置 Android Studio
1,http://developer.android.com/sdk/installing/studio.html 在這里下載WINDOWS版本的Android Studio;在本地計算機上獲得安裝文件:android-studio-bundle-130.677228-windows.exe;
2,運行安裝文件:android-studio-bundle-130.677228-windows.exe,在安裝過程中會發現沒有JDK,根據提示下載并運行這個文件:jdk-7u21-windows-i586.exe;
3,回到android-studio-bundle-130.677228-windows.exe的安裝界面,點下一步繼續完成安裝;
4,初次運行 Android Studio 可能會無法啟動,下面重點講一下我的修改;不同的系統可能做法不太一樣!
計算機屬性-高級-環境變量-系統變量新建:
變量名:ANDROID_STUDIO_JDK 變量值:C:\Program Files\Java\jdk1.7.0_215,在C:\Program Files\Android\android-studio\bin 下找到studio.bat,修改:
SET BITS= 為 SET BITS=326,運行 Android Studio ,等5秒左右,出現了是否導入原來配置的對話框;直接點ok;
7,啟動正常!