gpt4 book ai didi

Android 构建失败 - 诊断,ImagePicker 插件依赖不匹配

转载 作者:行者123 更新时间:2023-11-30 00:34:29 27 4
gpt4 key购买 nike

我正在处理我的 ionic 3 项目,该项目一直在完美构建,直到它决定不构建。当我运行 ionic run android 时,它失败了

BUILD FAILED

Error: /home/raj/ionic/bookemon/platforms/android/gradlew: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.

/home/raj/ionic/bookemon/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/home/raj/ionic/bookemon/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

/home/raj/ionic/bookemon/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/home/raj/ionic/bookemon/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':processDebugResources'.

    com.android.ide.common.process.ProcessException: Failed to execute aapt

这种情况多发生在sdk平台和构建工具不匹配的情况下。但我已经安装了 25 两者的最新版本。

当我没有 DiagnosticImagePicker 这两个插件时,构建成功。两者不能很好地协同工作。如果我只添加其中一个构建成功。

我有最新的 android@6.2.1 平台。如果您需要更多信息,请告诉我。我真的卡住了。

最佳答案

理解这个问题花了一些时间。这是由于两个插件都使用的库中的依赖项不匹配 - AppCompat 。 ImagePicker 已将其固定到 23 。因此,作为临时修复,我将诊断插件 fork 为使用版本 23。这是 repo .

两个 repo 协议(protocol)都存在一个问题,修复必须来自 Imagepicker

https://github.com/dpa99c/cordova-diagnostic-plugin/issues/203

https://github.com/Telerik-Verified-Plugins/ImagePicker/issues/51

关于Android 构建失败 - 诊断,ImagePicker 插件依赖不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43665944/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com