java - \app-theme-engine-0.5.2\res\layout\ate_preference_checkbox.xml:2:AAPT:警告:为外部包“android”生成 id“android:id/checkbox”
问题描述
构建错误:.gradle\caches\transforms-2\files-2.1\6e95e6bf811482085c3edc5b16516212\app-theme-engine-0.5.2\res\layout\ate_preference_checkbox.xml:2:AAPT:警告:生成的 id 'android:id/checkbox ' 用于外部包 'android'。
为什么新的 Android 工作室会出现此错误。我的代码没有错误。下面的代码是一个内置的 XML 文件。如何消除此错误?
(ate_preference_checkbox.xml)
<?xml version="1.0" encoding="utf-8"?>
<CheckBox xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+android:id/checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:tag="tint_accent_color" />
解决方案
推荐阅读
- sorting - 用芬威克树计算子数组和
- html - 如何使用 jQuery 添加多个元素?
- python - 如何根据第二个数据框在第一个数据框中创建新列?
- docker - 为开发和生产环境管理软件依赖项的最佳实践
- python - AttributeError:“StandardFrame”对象没有属性“tk”
- android - 房间数据库发出所有数据而不是跟随查询
- javascript - 在nestjs中验证多层嵌套对象
- r - 在 R 中按名称调用列表中的数据框
- linux - docker-compose 在容器内上下
- ruby-on-rails - 如何在捆绑安装期间清除 :development, :test 中的 gem?