gpt4 book ai didi

Android Hello World 项目错误 : "Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #2"

转载 作者:行者123 更新时间:2023-11-29 02:25:21 28 4
gpt4 key购买 nike

2018/09/27

我把android studio升级到3.2.0,并创建了默认项目。但是编译器报错:

Android resource compilation failed
Output: C:\Users\DELL-BODETY\AndroidStudioProjects\MyApplication3\app\src\main\res\drawable\ic_launcher_background.xml:1: error: not well-formed (invalid token).

Command: C:\Users\DELL-BODETY\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\1135036532c8b3c53c96f89a2a22aaca\aapt2-3.2.0-4818971-windows\aapt2.exe compile --legacy \
-o \
C:\Users\DELL-BODETY\AndroidStudioProjects\MyApplication3\app\build\intermediates\res\merged\debug \
C:\Users\DELL-BODETY\AndroidStudioProjects\MyApplication3\app\src\main\res\drawable\ic_launcher_background.xml
Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #1

我也想不出任何办法,求助!!

最佳答案

app\src\main\res\drawable\ic_launcher_background.xml:1: error: not well-formed (invalid token).

转到 drawable 目录并找到此文件:ic_launcher_background.xml

好像有编译错误、拼写错误、打字不当之类的,你需要检查一下是哪一个。它应该显示错误或带有红线错误的内容。可能使用了分号或类似的东西。

关于Android Hello World 项目错误 : "Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #2",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52532999/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com