AAPT:错误:找不到资源属性/(各种) [英] AAPT: Error: Resource attr/(various) not found

查看:226
本文介绍了AAPT:错误:找不到资源属性/(各种)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今晚遇到各种各样的问题.下载了更新的Android Studio和Gradle,并进行了一些编码,然后开始出现这些错误.尝试卸载android studio,将我的构建文件中的Gradle版本更改为较早的版本,使用较旧的android studio版本,删除Gradle缓存,以及其他一或三件事.现在,较旧版本的Android Studio表示我的项目必须与Android 3.6配合使用.

Having all kinds of problems tonight. Downloaded updated Android Studio and Gradle and coded a little and then started getting these errors. Have tried uninstalling android studio, changing the version of Gradle in my build file to an earlier version, using an older version of android studio, deleting the Gradle cache, and maybe one or three other things. Older versions of Android Studio now say my project must be used with Android 3.6.

构建输出抱怨的这些东西似乎都在它所要讨论的文件中存在.试图将它们注释掉...也不起作用.

These things the build output is complaining about all seem to exist in the file it's talking about at the exact line. Tried commenting them out... that didn't work either.

在这里我很少.你们中有白发的人看到我缺少的东西吗?

Little out of my league here. Any of you gray hairs see something I'm missing?

非常感谢任何帮助.

==========================================================================

===========================================================================

C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:268:5-4347:AAPT:错误:resource attr/flow_horizo​​ntalSeparator(又名找不到com.myproject.myproject:attr/flow_horizo​​ntalSeparator).C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:268:5-4347:AAPT:错误:resource attr/flow_verticalSeparator(aka找不到com.myproject.myproject:attr/flow_verticalSeparator).C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:269:5-3548:AAPT:错误:resource attr/flow_horizo​​ntalSeparator(又名找不到com.myproject.myproject:attr/flow_horizo​​ntalSeparator).C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:269:5-3548:AAPT:错误:resource attr/flow_verticalSeparator(aka找不到com.myproject.myproject:attr/flow_verticalSeparator).C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:271:5-4382:AAPT:错误:resource attr/flow_horizo​​ntalSeparator(又名找不到com.myproject.myproject:attr/flow_horizo​​ntalSeparator).C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:271:5-4382:AAPT:错误:resource attr/flow_verticalSeparator(aka找不到com.myproject.myproject:attr/flow_verticalSeparator).C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:271:5-4382:AAPT:错误:resource attr/motionProgress(又名com.myproject.myproject:attr/motionProgress)找不到.C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:274:5-588:AAPT:错误:resource attr/motionProgress(又名com.myproject.myproject:attr/motionProgress)找不到.C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:275:5-652:AAPT:错误:resource attr/motionProgress(又名com.myproject.myproject:attr/motionProgress)找不到.C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:284:5-653:AAPT:错误:resource attr/motionProgress(又名com.myproject.myproject:attr/motionProgress)找不到.C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:284:5-653:AAPT:错误:resource attr/waveDecay(又名com.myproject.myproject:attr/waveDecay)找不到.C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:288:5-232:AAPT:错误:resource attr/motionPathRotate(又名找不到com.myproject.myproject:attr/motionPathRotate).C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:290:5-295:36:AAPT:错误:resource attr/motionProgress(又名com.myproject.myproject:attr/motionProgress)找不到.C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:318:5-232:AAPT:错误:resource attr/motionProgress(又名com.myproject.myproject:attr/motionProgress)找不到.C:\ Users \ me \ .gradle \ caches \ transforms-2 \ files-2.1 \ d083c96bf16f0afa497f0903aac86f7e \ constraintlayout-2.0.0-beta2 \ res \ values \ values.xml:322:5-335:98:AAPT:错误:reso

C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:268:5-4347: AAPT: error: resource attr/flow_horizontalSeparator (aka com.myproject.myproject:attr/flow_horizontalSeparator) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:268:5-4347: AAPT: error: resource attr/flow_verticalSeparator (aka com.myproject.myproject:attr/flow_verticalSeparator) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:269:5-3548: AAPT: error: resource attr/flow_horizontalSeparator (aka com.myproject.myproject:attr/flow_horizontalSeparator) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:269:5-3548: AAPT: error: resource attr/flow_verticalSeparator (aka com.myproject.myproject:attr/flow_verticalSeparator) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:271:5-4382: AAPT: error: resource attr/flow_horizontalSeparator (aka com.myproject.myproject:attr/flow_horizontalSeparator) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:271:5-4382: AAPT: error: resource attr/flow_verticalSeparator (aka com.myproject.myproject:attr/flow_verticalSeparator) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:271:5-4382: AAPT: error: resource attr/motionProgress (aka com.myproject.myproject:attr/motionProgress) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:274:5-588: AAPT: error: resource attr/motionProgress (aka com.myproject.myproject:attr/motionProgress) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:275:5-652: AAPT: error: resource attr/motionProgress (aka com.myproject.myproject:attr/motionProgress) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:284:5-653: AAPT: error: resource attr/motionProgress (aka com.myproject.myproject:attr/motionProgress) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:284:5-653: AAPT: error: resource attr/waveDecay (aka com.myproject.myproject:attr/waveDecay) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:288:5-232: AAPT: error: resource attr/motionPathRotate (aka com.myproject.myproject:attr/motionPathRotate) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:290:5-295:36: AAPT: error: resource attr/motionProgress (aka com.myproject.myproject:attr/motionProgress) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:318:5-232: AAPT: error: resource attr/motionProgress (aka com.myproject.myproject:attr/motionProgress) not found. C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:322:5-335:98: AAPT: error: reso

推荐答案

更新:在我的应用程序的 build.gradle 文件中添加了实现'androidx.constraintlayout:constraintlayout:2.0.0-beta4',它可以正常工作.

Update: Added implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4' to my app's build.gradle file and it worked.

一个非常简单的问题,但是将其保留在那里.可能会节省一个人几个小时的无知.

Pretty simple question but going to leave this up there. Might save someone a few hours of ignorance.

这篇关于AAPT:错误:找不到资源属性/(各种)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆