如何在命令行上安装 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章