生成签名时出现错误 AAPT Android Studio

问题描述

我正在尝试生成签名 apk 以将我的应用发布到 Play 商店,但每次都会出现此错误

任务:app:processReleaseResources 失败 AGPBI: {"kind":"error","text":"Android 资源链接失败","sources":[{}],"original":"ERROR:: AAPT: /Users/luisabsg/Desktop/ebookandroid- 18_1/codecanyon-24119642-ebook-android-app-online-freepaid-book-paypal-admin-panel/MainFiles/AppCode/E-Books App/E-Books App/app/build/intermediates/res/merged/release/ .anim_abc_popup_enter.xml 2.flat.icloud:错误:读取文件失败:幻值是 0x696c7062 但 AAPT 需要 0x54504141。\n错误:解析叠加失败。\n\n ","tool":"AAPT"} 错误:: AAPT: /Users/luisabsg/Desktop/ebookandroid-18_1/codecanyon-24119642-ebook-android-app-online-freepaid-book-paypal-admin-panel/MainFiles/AppCode/E-Books App/E-Books App/app/build/intermediates/res/merged/release/.anim_abc_popup_enter.xml 2.flat.icloud: error: Failed to read file: magic value is 0x696c7062 但 AAPT 期望 0x54504141。 错误:解析叠加层失败。

enter image description here

有人帮我吗?

解决方法

您的项目中不应有 *.icloud 个文件。

禁用项目目录的任何 iCloud 同步。