[英]ionic build android error when using cordova build --release android
我正在嘗試在 EC2 上構建一個 Ionic 項目,但在安裝完所有內容后,運行時出現構建失敗錯誤:
cordova build --release android
這是我收到的錯誤消息:
:CordovaLib:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:processReleaseResources'.
java.io.IOException:無法運行程序“/home/ec2-user/android/build-tools/22.0.1/aapt”:error=2,沒有那個文件或目錄
* 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: 11.093 secs
我檢查了文件夾,我可以找到它抱怨的文件。 所以不太確定出了什么問題。
事實證明,我需要安裝 32 位 glibc 才能執行 64 位二進制文件,運行它為我解決了這個問題。
yum 安裝 zlib.i686 libstdc++.i686 ncurses-libs.i686 libgcc.i686
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.