gpt4 book ai didi

android - 错误 : No resource found that matches the given name (at 'dial ogCornerRadius' with value '?android:attr/dialogCornerRadius' )

转载 作者:搜寻专家 更新时间:2023-11-01 07:43:47 25 4
gpt4 key购买 nike

我一天到晚都在 cordova build 命令后出现这个错误。这似乎是最近发布的 SDK 27 P 预览版导致的错误。这里是完整的错误

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. Error: cmd: Command failed with exit code 1 Error output: C:\Users...\platforms\android\build\intermediates\res\merged\debug\values-v28\values-v28.xml:7:41-73: AAPT: No resource found that matches the given name (at 'dialog CornerRadius' with value '?android:attr/dialogCornerRadius').

Failed to generate resource table for split '' C:\Users...\platforms\android\build\intermediates\res\merged\debug\values-v28\values-v28.xml:7: error: Error: No resource found that matches the given name (at 'dial ogCornerRadius' with value '?android:attr/dialogCornerRadius').

FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ':processDebugResources'. com.android.ide.common.process.ProcessException: Failed to execute aapt

我找到了 here一种解决问题的方法,但它不能 100% 工作,因为构建结束时没有错误,但我无法在我的手机上安装 apk,因为需要带有 apiSDK 27 的设备。唯一可行的方法似乎是将编译 SDK 版本设置为 27+ P 预览,否则会显示该错误。

有人知道解决方法或修复方法吗(或者直接在 cordova 上或编辑 manifest.xml 都可以)?

最佳答案

我已将以下插件添加到 config.xml 中:

<plugin name="cordova-android-support-gradle-release" source="npm" spec="1.2.0"/>

它解决了问题。

关于android - 错误 : No resource found that matches the given name (at 'dial ogCornerRadius' with value '?android:attr/dialogCornerRadius' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49200841/

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