如何在命令行上安裝 Android SDK Build Tools? - How to install Android SDK Build Tools on the command line?

問題:

I want to setup the Android dev environment from command line, and encounter the following issue:我想從命令行設置Android開發環境,遇到以下問題:

wget http://dl.google.com/android/android-sdk_r22.0.5-linux.tgz

after extract the file, run解壓文件後,運行

tools/android update sdk --no-ui

However, it is too slow on running但是,運行速度太慢

Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml

The result is that nothing in folder build-tools, and I want is aapt and apkbuilder, since I want to build apk from command line without ant.結果是文件夾 build-tools 中沒有任何內容,我想要的是 aapt 和 apkbuilder,因爲我想在沒有 ant 的情況下從命令行構建 apk。


解決方案:

參考一: https://en.stackoom.com/question/1DN80
參考二: https://stackoom.com/question/1DN80
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章