0
你好,我試圖建立一個在Ubuntu 16.04上的cordova環境,我安裝了android studio,我安裝了所有的dependanceys,但是當我運行cordova構建時,出現以下錯誤,是否有人幫助我失去了什麼依賴性?Cordova構建失敗
FAILURE: Build failed with an exception.
* Where:
Script '/fast/html/slim_phone/slimapps/platforms/android/CordovaLib/cordova.gradle' line: 64
* What went wrong:
A problem occurred evaluating root project 'android'.
> No installed build tools found. Install the Android build tools version 19.1.0 or higher.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
但我有Android編譯工具安裝19.1.0和25.0
#/fast/home/tholum/Android/Sdk/tools/bin/sdkmanager --list
Installed packages:
Path | Version | Description | Location
------- | ------- | ------- | -------
build-tools;19.1.0 | 19.1.0 | Android SDK Build-Tools 19.1 | build-tools/19.1.0/
build-tools;25.0.3 | 25.0.3 | Android SDK Build-Tools 25.0.3 | build-tools/25.0.3/
emulator | 26.0.3 | Android Emulator | emulator/
extras;android;m2repository | 47.0.0 | Android Support Repository | extras/android/m2repository/
extras;google;m2repository | 51 | Google Repository | extras/google/m2repository/
patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4/
platform-tools | 25.0.6 | Android SDK Platform-Tools | platform-tools/
platforms;android-25 | 3 | Android SDK Platform 25 | platforms/android-25/
sources;android-25 | 1 | Sources for Android 25 | sources/android-25/
tools | 26.0.2 | Android SDK Tools | tools/
我在調查後發現它,我的ANDROID_HOME被設置爲錯誤的目錄,我在Sdk /工具中使用它,而不僅僅是Sdk / –