当启动sdk manager下载配置sdk的时候,报错如下:
botoo@botoo-virtual-machine:/opt/android-sdk-linux/tools$ sudo ./android update sdk
./android: 1: ./android: java: not found
./android: 1: ./android: java: not found
./android: 110: exec: java: not found
解决办法如下:
https://stackoverflow.com/questions/11441928/linux-ubuntu-android-sdk-manager-not-starting-up-androidjava-not-found
因为我的jdk版本是1.8的,所以执行的命令是:
sudo apt-get install openjdk-8-jdk
安装完成!
再次执行命令,成功: