先從官網下載Linux版的AndroidStudio http://developer.android.com/sdk/index.html#Other
解壓,把文件夾放到自己希望的目錄
進入剛剛的目錄,找到目錄下的bin/studio.sh文件,這個就是執行文件,不過不能直接在GUI模式下面運行
Ctrl+Alt+T打開Console, 然後進入剛剛的目錄,直的ls看到studio.sh爲止,輸入 ./studio.sh
接着會進入安裝步驟,如果選擇默認安裝,即第一項,我嘗試過會卡在下載進度三份一的位置,大概意思是在下載組件,這個時候可以強退安裝程序,直接回到剛剛的Console,Ctrl+C即可退出安裝程序
然後按照網上說的,找到bin/idea.properties 編輯, 最後一行加disable.android.first.run=true
重新用控制檯執行./studio.sh,這次在選擇第二項,自定義安裝,不要下載第二項,SDK
按照上面的方法應該就可以了
安裝後的簡單配置:
創建快捷方式: 打開AndroidStudio後Tools->Create Desktop Entry,然後右上角會提示成功創建,可以關閉Studio, 在菜單輸入studio即可啓動
升級SDK Manager: 打開SDK Manager->Tools->Options 填入 Proxy: mirrors.neusoft.edu.cn port: 80, Force https … 打勾
GenyMotion插件安裝:我的在線安裝不行,所以選擇了本地安裝,File->Setting 搜索Plugin, 最下面Install plug from disk
如果啓動GenyMotion出現下面提示:
Unable to load VirtualBox engine.
Make sure that it is properly installed before starting Genymotion.
在虛擬終端輸入virtualbox會提示:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.16.0-36-generic) or it failed to
load. Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
然後複製上面指令: sudo /etc/init.d/vboxdrv setup
然後出現:
Stopping VirtualBox kernel modules …done.
Recompiling VirtualBox kernel modules
…done.
就表示成功了,重啓GenyMotion即可