- 博客(3)
- 收藏
- 关注
原创 在 Android 开发中一些常见的报错类型
例如: ```groovy implementation('com.example.library:library:1.0') { exclude group: 'com.conflicting.group', module: 'conflicting-module' } ``` - 检查项目目录,删除重复的类文件。解决办法: - 确保自定义 View 的 `onMeasure` 方法正确处理 `MeasureSpec` 参数,根据不同的测量模式计算 View 的大小。原因: - 引用的资源文件不存在。
2025-02-19 10:19:45
520
原创 报错The markup in the document following the root element must be well-formed.
3. 特殊字符未转义 XML 中有一些特殊字符,像 `<`、`>`、`&` 等,必须进行转义处理。在编写 XML 文件时,要养成良好的编码习惯,确保代码格式正确。常见的特殊字符转义如下: | 特殊字符 | 转义字符 | | --- | --- | | `<` | `<` | | `>` | `>` | | `&` | `&` | | `"` | `"` | | `'` | `'` | 例如,将 `android:text="1 < 2"` 改为 `android:text="1 < 2"`。
2025-02-19 10:12:29
1021
原创 解决Gradle报错Caused by: org.gradle.api.internal.plugins.PluginApplicationException
报错问题Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'com.android.internal.application'.
2022-10-26 14:00:52
3335
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅