成人国产在线小视频_日韩寡妇人妻调教在线播放_色成人www永久在线观看_2018国产精品久久_亚洲欧美高清在线30p_亚洲少妇综合一区_黄色在线播放国产_亚洲另类技巧小说校园_国产主播xx日韩_a级毛片在线免费

資訊專欄INFORMATION COLUMN

ionic打包報錯Execution failed for task ':processD

GeekGhc / 2055人閱讀

摘要:項目打包運行命令的時候報錯報錯詳情如下解決辦法已經(jīng)執(zhí)行過命令添加了平臺,直接打開目錄你的項目工程文件中找到方法在這個方法之前添加上如下內(nèi)容原因分析帶號是指要用最新版本。

ionic項目打包運行命令 ionic build android的時候報錯

報錯詳情如下

:processDebugResourcesERROR: In  FontFamilyFont, 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

相關(guān)文章

  • ionic打包報錯Execution failed for task ':compileD

    摘要:添加插件可能會遇到如下報錯提示信息如果你在時,有注意到是需要版本大于等于解決方案所以只需要運行命令這樣就在運行就能打包成功了 添加ionic插件cordova-plugin-file可能會遇到如下報錯 提示信息 :processDebugResources :generateDebugSources :compileDebugJava apache/cordova/filetransf...

    pepperwang 評論0 收藏0
  • ionic打包報錯Execution failed for task ':compileD

    摘要:添加插件可能會遇到如下報錯提示信息如果你在時,有注意到是需要版本大于等于解決方案所以只需要運行命令這樣就在運行就能打包成功了 添加ionic插件cordova-plugin-file可能會遇到如下報錯 提示信息 :processDebugResources :generateDebugSources :compileDebugJava apache/cordova/filetransf...

    whidy 評論0 收藏0
  • Execution failed for task ':app:compileDebugJ

    摘要:注有關(guān)詳細信息請使用重新編譯。個錯誤原來是的找不到了徹底解決了可以在右側(cè)找到對應的各種快捷鍵 org.gradle.api.tasks.TaskExecutionException: Execution failed for task :app:compileDebugJavaWithJavac. at org.gradle.api.internal.tasks.executi...

    nicercode 評論0 收藏0
  • [譯] Plaid 應用遷移到 AndroidX 的實踐經(jīng)歷

    摘要:它是對的重大改進和全面替代方案。一個更直接的方法是開始遷移,并且檢查可能出現(xiàn)的報錯。遷移工具位于菜單欄的選項。這個選項將遷移整個項目的所有模塊。中的遷移工具是遷移的主要方式。遷移應用變更最少的代碼以保證應用可以仍能正常運行。 原文地址:Cross-stitching Plaid and AndroidX 原文作者:Tiem Song 譯文出自:掘金翻譯計劃 本文永久鏈接:github.co...

    番茄西紅柿 評論0 收藏0

發(fā)表評論

0條評論

最新活動
閱讀需要支付1元查看
<