离子构建Android | 错误:找不到安装的生成工具。请安装Android构建工具
当我在ionic项目的根目录中运行ionic build android命令时,出现此错误: 失败:生成失败,发生异常。 其中:脚本'/home/javad/Desktop/javadApp/platforms/android/CordovaLib/cordova.gradle'行:64 出了什么问题:评估根项目“ android”时发生问题。 找不到安装的构建工具。请安装Android构建工具版本19.1.0或更高版本。 尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。 javad@javad:~/Desktop/javadApp$ ionic build android Running command: /home/javad/Desktop/javadApp/hooks/after_prepare/010_add_platform_class.js /home/javad/Desktop/javadApp add to body class: platform-android Running command: /home/javad/Desktop/javadApp/platforms/android/cordova/build ANDROID_HOME=/opt/android-sdk JAVA_HOME=/usr/lib/jvm/default-java Running: /home/javad/Desktop/javadApp/platforms/android/gradlew cdvBuildDebug -b /home/javad/Desktop/javadApp/platforms/android/build.gradle -Dorg.gradle.daemon=true FAILURE: Build failed with an exception. * Where: Script '/home/javad/Desktop/javadApp/platforms/android/CordovaLib/cordova.gradle' line: 64 * What went wrong: A …