在包“com.app...."中找不到属性“..."的资源标识符 [英] No resource identifier found for attribute '...' in package 'com.app....'
问题描述
我已将一个项目从 Eclipse 导入到 Android Studio.它使用自定义视图:
I've imported a project from Eclipse to Android studio. It utilizes a custom view:
xmlns:app="http://schemas.android.com/apk/res-auto"
我从 activity_ro.xml
文件中得到以下行中的错误,例如:
I get errors in the lines below from activity_ro.xml
file like:
"错误:(136) 没有找到属性的资源标识符com.app.xxxx"包中的pstsTabPaddingLeftRight"
"Error:(136) No resource identifier found for attribute 'pstsTabPaddingLeftRight' in package 'com.app.xxxx'"
app:pstsDividerColor="#00000000"
app:pstsIndicatorColor="#FF33B5E6"
app:pstsTabPaddingLeftRight="14dip"
app:pstsUnderlineColor="#FF33B5E6" />
我不确定 gradle 的自定义视图是否不同,或者我做错了什么.有人有想法吗?
I'm not sure if custom views are different for gradle or maybe I'm doing something wrong. Anyone have an idea?
推荐答案
我刚刚改了:
xmlns:app="http://schemas.android.com/apk/res-auto"
到:
xmlns:app="http://schemas.android.com/apk/lib/com.app.chasebank"
它停止生成错误,com.app.chasebank
是包的名称.它应该根据这个堆栈溢出:在包com.google.example"main.xml中找不到属性adSize"的资源标识符
and it stopped generating the errors, com.app.chasebank
is the name of the package. It should work according to this Stack Overflow : No resource identifier found for attribute 'adSize' in package 'com.google.example' main.xml
这篇关于在包“com.app...."中找不到属性“..."的资源标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!