摘要:項目打包運行命令的時候報錯報錯詳情如下解決辦法已經(jīng)執(zhí)行過命令添加了平臺,直接打開目錄你的項目工程文件中找到方法在這個方法之前添加上如下內(nèi)容原因分析帶號是指要用最新版本。
ionic項目打包運行命令 ionic build android的時候報錯
報錯詳情如下
:processDebugResourcesERROR: InFontFamilyFont, unable to find attribute android:fontVariationSettings ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ":processDebugResources". > com.android.ide.common.process.ProcessException: Failed to execute aapt BUILD FAILED Total time: 27.96 secs * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Error: cmd: Command failed with exit code 1 Error output: ERROR: In FontFamilyFont, unable to find attribute android:fontVariationSettings ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ":processDebugResources". > 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.
解決辦法:
已經(jīng)執(zhí)行過命令ionic cordova platform add android 添加了android平臺,
直接打開目錄 你的項目工程/platform/build.gradle文件中
找到def addSigningProps(propsFilePath, signingConfig){...}方法
在這個方法之前添加上如下內(nèi)容
gradle.taskGraph.whenReady { taskGraph -> taskGraph.getAllTasks().each() { task -> if (task.name == "validateReleaseSigning" || task.name == "validateSigningRelease") { promptForReleaseKeyPassword() } } } def addSigningProps(propsFilePath, signingConfig) { ... }
原因分析
compile "com.android.support:support-v4:+" 帶+號是指要用最新版本。
force "com.android.support:support-v4:27.1.0" 添加force強制指定annotations
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://systransis.cn/yun/93414.html
摘要:添加插件可能會遇到如下報錯提示信息如果你在時,有注意到是需要版本大于等于解決方案所以只需要運行命令這樣就在運行就能打包成功了 添加ionic插件cordova-plugin-file可能會遇到如下報錯 提示信息 :processDebugResources :generateDebugSources :compileDebugJava apache/cordova/filetransf...
摘要:添加插件可能會遇到如下報錯提示信息如果你在時,有注意到是需要版本大于等于解決方案所以只需要運行命令這樣就在運行就能打包成功了 添加ionic插件cordova-plugin-file可能會遇到如下報錯 提示信息 :processDebugResources :generateDebugSources :compileDebugJava apache/cordova/filetransf...
摘要:注有關(guān)詳細信息請使用重新編譯。個錯誤原來是的找不到了徹底解決了可以在右側(cè)找到對應的各種快捷鍵 org.gradle.api.tasks.TaskExecutionException: Execution failed for task :app:compileDebugJavaWithJavac. at org.gradle.api.internal.tasks.executi...
摘要:它是對的重大改進和全面替代方案。一個更直接的方法是開始遷移,并且檢查可能出現(xiàn)的報錯。遷移工具位于菜單欄的選項。這個選項將遷移整個項目的所有模塊。中的遷移工具是遷移的主要方式。遷移應用變更最少的代碼以保證應用可以仍能正常運行。 原文地址:Cross-stitching Plaid and AndroidX 原文作者:Tiem Song 譯文出自:掘金翻譯計劃 本文永久鏈接:github.co...
閱讀 1050·2021-10-27 14:15
閱讀 2803·2021-10-25 09:45
閱讀 1963·2021-09-02 09:45
閱讀 3383·2019-08-30 15:55
閱讀 1824·2019-08-29 16:05
閱讀 3219·2019-08-28 18:13
閱讀 3134·2019-08-26 13:58
閱讀 477·2019-08-26 12:01