在包'com.app ....'中找不到属性''的资源标识符 [英] No resource identifier found for attribute ' ' in package 'com.app....'

查看:179
本文介绍了在包'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屋!

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