码迷,mamicode.com
首页 > 移动开发 > 详细

android 自定义view Multiple annotations found at this line:

时间:2015-04-09 09:05:27      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:android   android应用   android平台   android开发   xml   

在安卓自定义View中,自定义属性会报一个错Multiple annotations found at this line:然后提示各种属性没有

解决办法是 在 最外层的 xmlns:****="“;  这个地方中,去掉  apk/res/ ,就是达到 自定义view的 目录 接上http://schemas.android.com/ 这个就好了。 加上 /apk/res会让编译器去扫描res下面的东西

android 自定义view Multiple annotations found at this line:

标签:android   android应用   android平台   android开发   xml   

原文地址:http://blog.csdn.net/xfcy_hades/article/details/44944669

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!