android tool export报错为support v7包问题_JAVA_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > JAVA > android tool export报错为support v7包问题

android tool export报错为support v7包问题

 2014/9/28 3:16:31  离艮巽  程序员俱乐部  我要评论(0)
  • 摘要:android在这次的更新23.0.2的SDKtools在用androidtoolexport打包时候会出错,出错类型为{Duplicateid@+id/image,alreadydefinedearlierinthislayoutIssue:ChecksforduplicateidswithinasinglelayoutId:DuplicateIdsWithinalayout,id'sshouldbeuniquesinceotherwisefindViewById(
  • 标签:android 问题

? android在这次的更新23.0.2的SDK tools在用android tool export打包时候会出错,出错类型为

Duplicate id @+id/image, already defined earlier in this layout Issue: Checks for duplicate ids within a single layout Id: DuplicateIds Within a layout, id's should be unique since otherwise findViewById() can return an unexpected view.

This class should be public (android.support.v7.internal.widget.ActionBarView.HomeView) Issue: Ensures that classes registered in the manifest file are instantiatable Id: Instantiatable Activities, services, broadcast receivers etc. registered in the manifest file must be "instantiatable" by the system, which means that the class must be public, it must have an empty public constructor, and if it's an inner class, it must be a static inner class.

?



?



?

解决方法为直接用export导出包。

?

这个方法真机测试的时候可能会出现一些奇怪的错误

?

这个问题的类型应该为support v7 出现问题,一个id名称重复了,估计是官方的问题。。上回那个android SDK 新建工程要重复build,现在又tools export出问题,更新都要考虑风险了。

?

?

  • 大小: 16.3 KB
  • 大小: 23.4 KB
  • 查看图片附件
发表评论
用户名: 匿名