当前位置:网站首页>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 .
边栏推荐
- Tik tok "founder" Yang Luyu, farewell byte?
- 用C语言开发NES游戏(CC65)02、什么是v-blank?
- New progress in the implementation of the industry | the openatom openharmony sub forum of the 2022 open atom global open source summit was successfully held
- 一台电脑上 多个项目公用一个 公私钥对拉取gerrit服务器代码
- 图书馆自动预约脚本
- 用C语言开发NES游戏(CC65)08、背景 碰撞
- 【一知半解】零值拷贝
- SuperMap itablet license module division
- Four authentic postures after suffering and trauma, Zizek
- Basic use of JSON server
猜你喜欢

C for循环内定义int i变量出现的重定义问题

Arduino Pro Mini atmega328p connect and light the first LED (at the same time, record the problem of burning failure stk500_recv)
![[half understood] zero value copy](/img/5b/18082c1ea93f2e3bbf4920d73163fd.png)
[half understood] zero value copy

Basic use of JSON server

Foam exploded three times, why did Luo Yonghao put all his eggs in one basket to do ar?

The usage and Simulation Implementation of vector in STL

用C语言开发NES游戏(CC65)07、控制器

03 pyechars 直角坐标系图表(示例代码+效果图)

揭秘界面控件DevExpress WinForms为何弃用受关注的MaskBox属性

AVL树(平衡搜索树)
随机推荐
SuperMap arsurvey license module division
8000 word explanation of OBSA principle and application practice
C# 结构使用
输入字符串,内有数字和非字符数组,例如A123x456将其中连续的数字作为一个整数,依次存放到一个数组中,如123放到a[0],456放到a[1],并输出a这些数
Kuzaobao: summary of Web3 encryption industry news on July 13
The openatom openharmony sub forum was successfully held, and ecological and industrial development entered a new journey
Configure jupyter remote server
Industry, University, research and application jointly build an open source talent ecosystem | the 2022 open atom global open source summit education sub forum was successfully held
Analysys analysis: focus on users, improve the user experience of mobile banking, and help the growth of user value
Distributed session solution
SQL injection less23 (filter comment)
Redis implements distributed locks
05 pyechars 基本图表(示例代码+效果图)
If you don't roll the golden nine and silver ten, it's too late
[cute new problem solving] climb stairs
MSP430 开发中遇到的坑(待续)
Open source huizhichuang future | 2022 open atom global open source summit openatom openeuler sub forum was successfully held
leetcode:704二分查找
1331. 数组序号转换 : 简单模拟题
西门子对接Leuze BPS_304i 笔记