android - 资源 'attr/pivotX' 与配置 ' ' 的重复值

标签 android gradle

一个月后,启动 Android Studio 并与 Gradle 同步,弹出此错误。重建/清理项目不起作用并再次显示相同的错误。

我试图重建/清理并使项目无效/重新启动,但似乎没有任何效果。我已经在这个网站上搜索了这个问题,但似乎仍然没有任何效果。如果有人帮我解决这个问题,那就太好了,因为我被卡住了,无法提供更新我的应用程序。
Android resource compilation failed Output: E:\Play Store Listings\Notepedia\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2616: error: duplicate value for resource 'attr/pivotX' with config ''. E:\Play Store Listings\Notepedia\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2616: error: resource previously defined here. E:\Play Store Listings\Notepedia\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2616: error: duplicate value for resource 'attr/pivotY' with config ''. E:\Play Store Listings\Notepedia\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2616: error: resource previously defined here. Command: C:\Users\Taseer.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\8dd90688e4f5a22b34a1a148f45c2455\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \ -o \ E:\Play Store Listings\Notepedia\app\build\intermediates\res\merged\debug \ E:\Play Store Listings\Notepedia\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
编辑:这是导致错误的地方:Image

编辑 2:下载链接(文件已删除)

最佳答案

就我而言,我尝试实现约束布局的新版本(在 gradle 中)

实现 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'

我得到这个错误。我不想编辑任何属性,我确实恢复到稳定版本

实现 'androidx.constraintlayout:constraintlayout:1.1.3'

并且错误消失了。

关于android - 资源 'attr/pivotX' 与配置 ' ' 的重复值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54211854/

相关文章:

android - 在发布版本上 react native AAPT错误

android - LocationAwareException : Execution failed for task ':app:processDebugManifest'

android - 进程 'command ' git'完成,退出值非零1

android - VectorDrawable - 它是否可用于 Android 的 Lollipop 前版本?

安卓:notifyDataSetChanged();不工作

java - 在不同的 LinearLayouts 中对齐 TextView 宽度

android - 使用 Gradle 编译时出错(找不到下载的依赖项)

java - 将套接字对象传递给 Android 上的另一个 Activity

android - 连接阿拉伯语和英语文本android TextView

java - 蓝牙 GATT 尝试在空对象引用上调用虚拟方法 'void android.content.Context.sendBroadcast(android.content.Intent)'