配置:ubuntu18.04
qt5.12.6
ndk-r19c
sdk-r24.4.1
jdk1.8.0_361
问题一:在sdk目录下运行./android出现以下问题:
sudo ./android
./android: 1: ./android: java: not found
./android: 1: ./android: java: not found
./android: 110: exec: java: not found
解决方法:
sudo update-alternatives --install /usr/local/bin/java java [your jdk path]/bin/java 0
sudo update-alternatives --install /usr/local/bin/java javac [your jdk path]bin/javac 0
版权声明:本文为Oliver1125原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。