日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

cordova编译crosswalk-webview插件报错的处理办法

發布時間:2023/12/20 编程问答 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 cordova编译crosswalk-webview插件报错的处理办法 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一直用得好好的。今天編譯cordova失敗了。報錯如下: :processArmv7DebugManifest :processArmv7DebugResourcesERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettingsFAILED ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndexBUILD FAILEDTotal time: 4.285 secsFAILURE: Build failed with an exception.* What went wrong: Execution failed for task ':processArmv7DebugResources'. > com.android.ide.common.process.ProcessException: Failed to execute aapt* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. (node:5040) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output: ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndexFAILURE: Build failed with an exception.* What went wrong: Execution failed for task ':processArmv7DebugResources'. > com.android.ide.common.process.ProcessException: Failed to execute aapt* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. (node:5040) [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.


原因:gradle版本跟crosswalk產生沖突,需要降低gradle版本,或者安裝兼容插件

解決辦法:

cordova plugin add cordova-android-support-gradle-release --variable ANDROID_SUPPORT_VERSION=27.0.0

然后再編譯cordova build android 就不會報錯了。


參考文章:

https://forum.ionicframework.com/t/android-build-broken-after-gradle-dependencies-update-execution-failed-for-task-processdebugresources-com-android-ide-common-process-processexception-failed-to-execute-aapt/109982/155

https://stackoverflow.com/questions/47413647/ionic-android-build-error-all-flavors-must-now-belong-to-a-named-flavor-dimen


總結

以上是生活随笔為你收集整理的cordova编译crosswalk-webview插件报错的处理办法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。