Ứng dụng Ionic/Cordova của tôi có tất cả việc dừng đột ngột trên Android sau khi cập nhật Ionic và Cordova CLI. Tôi đã dành 2 ngày cuối cùng để tìm kiếm giải pháp cho Google nhưng tôi không thể tìm thấy bất kỳ thứ gì đã giúp. Tôi giả định rằng nó là một cái gì đó để làm với Cordova bây giờ bằng cách sử dụng Gradle để xây dựng thay vì Apache Ant. SDK Android của tôi và xây dựng công cụ này là tất cả lên đến phiên bản 22, Gradle 2.2, Ant 1.9.4, JDK 8.Xây dựng Android Ionic ngừng hoạt động
Các chi tiết khác:
Cordova CLI: 5.1.1
Ionic CLI Version: 1.6.1
Ionic App Lib Version: 0.3.3
Hệ điều hành: Mac OS X Yosemite Node Version: v0.12.7
Khi tôi chạy ion build android, tôi nhận được lỗi này:
FAILURE: Build failed with an exception.
* Where:
Script '/platforms/android/CordovaLib/cordova.gradle' line: 128
* What went wrong:
A problem occurred evaluating root project 'android'.
> No match found
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.426 secs
/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /platforms/android/gradlew with args: cdvBuildDebug,-b,/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error: /platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: /platforms/android/cordova/build: Command failed with exit code 1
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
bạn đã cố gắng xóa nền tảng và thêm lại nền tảng chưa? – LeftyX
Có, tôi đã thực hiện nó một vài lần nhưng vẫn không có may mắn –