android tool export报错为support v7包问题
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出问题,更新都要考虑风险了。
更多相关文章
- android 导入工程出现很多错误 cannot be resolved
- Android(安卓)下载图片的问题
- android学习——android 常见的错误 和 解决方法
- android 从tomcat读取文件出错:connect failed: ECONNREFUSED
- ubuntu出错,开机无法登录
- mac 下启动Android(安卓)Studio 时出现 Android(安卓)Studio was
- [置顶] Android(安卓)Studio Eclipse运行时出现 finished with n
- android Vibrator使用示例
- android中webview开启了硬件加速后会出现闪烁问题