我想在我的android手机上运行我的离子应用程序。我读了一些有关此问题的主题,然后尝试以此方式设置我的android环境。 sdk安装到---> C:\ Users \ Raf
我设置了:
ANDROID_HOME=C:\Users\Raf ( in this way i haven't got not found ANDROID_HOME error)
PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
但是当我运行“ ionic cordova run android”时,我遇到了麻烦:
失败:构建失败,并出现异常。
Where:
Script C:\Users\Raf\Desktop\unicam\pw\APP-FSG\platforms\android\CordovaLib\cordova.gradle' line: 68
出了什么问题: 评估项目':CordovaLib'时发生问题。
找不到安装的构建工具。安装Android构建工具版本19.1.0或更高版本。
尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行,以获取更多日志输出。
BUILD FAILED in 2s
at ChildProcess.whenDone (C:\Users\Raf\Desktop\unicam\pw\APP-FSG\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:1116) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1116) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code."
我运行sdkmanager --list和android构建工具尚未安装! 有人可以以某种方式帮助我吗?