在包"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屋!