AAPT:错误:找不到资源 attr/title_text(又名 com.example.DropdownTextView:attr/title_text) [英] AAPT: error: resource attr/title_text (aka com.example.DropdownTextView:attr/title_text) not found
问题描述
当我在腰带中设置此代码时,我遇到了这个问题.
When I set this code in girdle I face this problem.
implementation 'com.github.hakobast:dropdown-textview:0.3.1'
应用程序无法运行.
Github 链接:https://github.com/hakobast/DropdownTextView
推荐答案
由于库所有者在过去 1 年没有更新库,我将其分叉并在 jitpack 上发布新版本而不是 bintray(jcenter) 作为 bintray(jcenter) 已弃用.
As the library owner is not updating the library for the last 1 year I forked it and release a new version on jitpack rather than bintray(jcenter) as bintray(jcenter) is deprecated.
由于我没有在 jitpack 上发布付费版本的 SDK,您可能需要根据包含 GitHub 用户名的 jitpack 约定稍微更改依赖项名称.
As I don't have paid version of SDK to release on jitpack, you might have to change the dependency name a little as per the jitpack convention which includes the GitHub username.
如何将新库添加为依赖项.
How to add the new library as a dependency.
将其添加到存储库末尾的根 build.gradle 中:
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
添加依赖
dependencies {
implementation 'com.github.dk19121991:DropdownTextView:0.3.3'
}
我确实自己尝试过,现在我没有收到提到的错误
I did try it myself now I am not getting the mentioned error
AAPT:错误:资源属性/标题文本(又名com.example.DropdownTextView:attr/title_text) 未找到
AAPT: error: resource attr/title_text (aka com.example.DropdownTextView:attr/title_text) not found
请尝试图书馆并告诉我,如果您觉得还有什么需要,我只是做了有限的更改并发布它以帮助您,因为图书馆的所有者没有响应
Please try the library and let me know, if you feel anything else you need, I just did limited changes and publish it to help you as the owner of the library is not responding
库的分叉链接 https://github.com/dk19121991/DropdownTextView
这篇关于AAPT:错误:找不到资源 attr/title_text(又名 com.example.DropdownTextView:attr/title_text)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!