Tôi cố gắng để cài đặt Cordova trên cửa sổ 7. Tôi làm theo hướng dẫn này: https://www.tutorialspoint.com/cordova/cordova_first_application.htmyêu cầu cordova vấn đề, mục tiêu android không được cài đặt
trong khi tôi chạy yêu cầu cordova, nó nói mục tiêu android không intalled và đặt biến môi trường ANDROID_HOME
I:\CordovaProject\hello>cordova requirements
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
Android SDK not found. Make sure that it is installed. If it is not at the
default location, set the ANDROID_HOME environment variable.
Gradle: installed
Error: Some of requirements check failed
I:\CordovaProject\hello>echo %ANDROID_HOME%
C:\Users\user\AppData\Local\Android\sdk
như bạn có thể thấy trong hình 1, khi tôi lặp lại ANDROID_HOME nó được đặt ở vị trí thích hợp. Tôi không thể giải quyết lỗi này. vui lòng giúp tôi với con đường
này có những:% ANDROID_HOME% \ tools;% ANDROID_HOME% \ nền tảng công cụ
Tôi đã tải android-25 trong Android Studio
và dự án thuộc tính tập tin có mục tiêu android thiết lập để: android-25 cả về I: \ CordovaProject \ chào \ nền tảng \ android \ CordovaLib \ project.properties
I: \ CordovaProject \ chào \ nền tảng \ \ project.properties android
và khi tôi chạy cordova xây dựng android tôi nhận được lỗi sau
BUILD FAILED
Total time: 31.807 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not download uast.jar (com.android.tools.external.com-
intellij:uast:145.597.3)
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/ex
ternal/com-intellij/uast/145.597.3/uast-145.597.3.jar'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/external
/com-intellij/uast/145.597.3/uast-145.597.3.jar'.
> akamai.bintray.com
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or -
-debug option to get more log output.
số ít nền tảng của nó, không số nhiều. – paqogomez