当前位置:网站首页>The 'name' attribute value associated with the element type 'item' cannot contain '& lt;' Character solution
The 'name' attribute value associated with the element type 'item' cannot contain '& lt;' Character solution
2022-07-28 12:41:00 【yi_ tianchou】
Android Construction of time error :
app:lintVitalRelease[Fatal Error] :3:214: And element type “item” The associated “name” Property values cannot contain ‘<’ character .
Could not read /Users/panxin/Library/Android/sdk/platform-tools/api/annotations.zip
java.io.IOException: Could not parse XML from android/accounts/annotations.xml
reason :sdk Next /platform-tools/api/annotations.zip In this document xml Caused by non-standard documents .
annotations.xml This document reports an error , Then open this file and have a look .
annotations.zip After decompression, we get android, Find the wrong file according to the error information .
Find out :
<item name="android.accounts.AccountManager android.accounts.AccountManagerFuture<android.os.Bundle> addAccount(java.lang.String, java.lang.String, java.lang.String[], android.os.Bundle, android.app.Activity, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler)">
For example, the revised paragraph :
<item name="android.accounts.AccountManager android.accounts.AccountManagerFuture<android.os.Bundle> addAccount(java.lang.String, java.lang.String, java.lang.String[], android.os.Bundle, android.app.Activity, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler)">
<annotation name="androidx.annotation.RequiresPermission">
See? ,<> With a <>. This is in xml It is not allowed in .
Modify by yourself :1、 Open the error reporting file with Notepad ( Read the wrong information android/accounts/annotations.xml), And put the... In the label ‘<’ and ‘>’ Replace the characters with "<” and “>”
2、 After the modification , Guarantee <>, Not in it <> After saving , Replace annotations.zip Wrong documents reported in , Go back to the project and compile again .
边栏推荐
- Developing NES games with C language (cc65) 04. Complete background
- XIII Actual combat - the role of common dependence
- Functions and pointers in 08 go language
- 图书馆自动预约脚本
- 05 pyechars 基本图表(示例代码+效果图)
- C for循环内定义int i变量出现的重定义问题
- AVL tree (balanced search tree)
- 用C语言开发NES游戏(CC65)09、滚动
- Is it difficult for cloud native machine learning to land? Lingqueyun helps enterprises quickly apply mlops
- 【萌新解题】爬楼梯
猜你喜欢

Anhui Jingzhun: Beidou satellite synchronous clock | Beidou synchronous clock | NTP network clock server

01 pyechars 特性、版本、安装介绍

图书馆自动预约脚本

Sub database and sub table may not be suitable for your system. Let's talk about how to choose sub database and sub table and newsql

GMT安装与使用

Design a thread pool

MMA8452Q几种模式的初始化实例

Analysis of new retail e-commerce o2o model

软件架构师必需要了解的 saas 架构设计?

用C语言开发NES游戏(CC65)09、滚动
随机推荐
开源汇智创未来 | 2022 开放原子全球开源峰会 OpenAtom openEuler 分论坛圆满召开
Developing NES games with C language (cc65) 10. Game cycle
Anhui Jingzhun: Beidou satellite synchronous clock | Beidou synchronous clock | NTP network clock server
Is it overtime to be on duty? Take up legal weapons to protect your legitimate rights and interests. It's time to rectify the working environment
C# 结构使用
Analysys analysis: focus on users, improve the user experience of mobile banking, and help the growth of user value
[dark horse morning post] LETV 400 employees have no 996 and no internal papers; Witness history! 1 euro =1 US dollar; Stop immediately when these two interfaces appear on wechat; The crackdown on cou
合并表格行---三层for循环遍历数据
stm32 回环结构接收串口数据并处理
Zadig v1.13.0 believes in the power of openness, and workflow connects all values
Using Arduino to develop esp8266 to build a development environment
上位机和三菱FN2x通信实例
How can a novice quickly complete the establishment of a website? Come to the free "fitting room" experience
Foam exploded three times, why did Luo Yonghao put all his eggs in one basket to do ar?
SuperMap arsurvey license module division
Fastjson parses multi-level JSON strings
[try to hack] at, SC, PS command authorization
Let Arduino support nuvotom Xintang
GMT安装与使用
用C语言开发NES游戏(CC65)05、调色板