android studio最新版的安裝和配置(android-studio-ide-191.5977832-windows)


轉載原文地址:https://www.cnblogs.com/singledogpro/p/9551841.html

下載地址:
android studio:http://www.android-studio.org/
JDK:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

注意:1.在正式開始安裝android studio之前,請先檢查下你的win10的用戶名(C盤->user)是否是含有中文,如果是,請新建一個用戶,JDE的安裝和配置也請重新安裝和配置,因為含有中文的路徑都是無法編譯gradle。無法編譯gradle意味着android studio根本無法使用.
2.JDK的版本不低於1.6但不高於1.8。最好是1.8,即SE8,x64版本是64位,x86是32位。一般都是下windows版本的64位。
3.關於JDK的下載,安裝和配置請參照我另外一篇文章,操作過程幾乎一樣 https://www.cnblogs.com/singledogpro/p/9550366.html

enter description here

 

1.根據上述地址下載好android studio.

enter description here
下載android studio

 

2.打開該exe文件,在彈出的界面勾選Android virtual Device ,用於以后的真機測試,以及各種系統日志輸出等

 
 
enter description here
勾選Android virtual Device

 

3.選擇安裝目錄,盡量將開發工具安裝在固態硬盤,加速啟動,此處我安裝在D盤。目錄結構如下

 

enter description here
enter description here

 

4.是否在桌面創建快捷方式,勾選就是不創建這個隨意。點擊Install進行安裝,安裝有點耗時,安裝完成后點擊finish進行初始配置

 

enter description here
enter description here

 

 

enter description here
enter description here

 

5.初始設置,是否導入先前的安卓項目,一般來說都是新手入門,哪里來的項目,選擇第二項,點擊OK進行下一步操作

 

enter description here
enter description here

 

6.如果在啟動過程中彈出如下列表,點擊cancel取消,因為我們還沒有進行設置

 

enter description here
enter description here

 

7.點擊下一步開始設置,選擇custom進行自定義安裝,如果選擇standard標准安裝,會將SDK安裝在C盤,如果C盤較小的同學請選擇custom安裝,我這里安裝在D盤。然后UI主題選擇暗色調,隨意。如果是intel的CPU,記得勾選性能加速的選項,(但同時要開啟CPU虛擬化,主板BIOS設置->高級設置->CPU設置->intel Virtualization(虛擬化)->enabled,保存退出).嫌麻煩的可以不用操作。年代久遠,我忘記真機測試是否需要開啟。

 

enter description here
enter description here

 

 

enter description here
enter description here

 

 

enter description here
enter description here

 

 

enter description here
enter description here

 

 

enter description here
enter description here

 

8.接着進行內存分配,即分配多少內存給模擬機(即模擬機的內存有多大),一般都是4096,如果你的開發機只有8G,就分配2048吧。點擊next,接着點擊finish進行邊下載邊安裝操作,這步的操作也比較耗時.這個過程可能會存在卡死的現象,請不要關閉和取消。

 

enter description here
enter description here

 

 

enter description here
enter description here

 

 

enter description here
enter description here

 

9.最后安裝成功點擊finish.彈出android studio的主界面

 

enter description here
enter description here

 

10.選擇最低版本的SDK,18年已經很少基於4.0版本的手機了。一般來說都是api16,接着選擇空的activity.點擊next,接着finish進行工程創建

 

enter description here
enter description here

 

 

enter description here
enter description here

 

 

enter description here
enter description here

 

11.新創建的工程要進行資源加載,加載速度有點慢,進入編輯界面后,左下方有錯誤。右上方的提示翻譯為,同步工程出錯,基礎功能失效,解決方案就是下載一個gradle.

 

enter description here
enter description here

 

12.官網下載實在太慢了,百度gradle 4.4-all,一般雲盤都會存儲這個的,下載相應的壓縮包(89M)到本地,無需解壓。然后依次按照【C盤】->【用戶】->【你的用戶名】->【.gradle】->【wrapper】->【dists】->【gradle-4.4-all\】->【9br9xq1tocpiv8o6njlyu5op1】打開,把剛才的下載gradle包扔到這里面來即可,無需解壓,無需解壓,無需解壓,接着回到android studio,它就會開始同步。同步的過程耗費時間有點長,並且會有彈窗彈出,詢問是否允許訪問網絡

 

enter description here
enter description here

 

 

enter description here
enter description here

 

 

enter description here
enter description here

 

13.如果期間還彈出需要安裝SDK,直接點擊錯誤處藍色鏈接,進行安裝,並且同意協議,反正它需要什么直接下載接受安裝

 

enter description here
enter description here

 

 

enter description here
enter description here

 

14.如果配置好了,我們嘗試按照【Build】->【Build APK(s)】創建一個應用程序,如果創建成功,后台會輸出apk(s) generated successfully!的字樣。

 

enter description here
enter description here

 

 

enter description here
enter description here

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM