cordova编译crosswalk-webview插件报错的处理办法
生活随笔
收集整理的這篇文章主要介紹了
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插件报错的处理办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 思维导图相关
- 下一篇: 〖全域运营实战白宝书 - 运营角色认知篇