Page 1 of 1

【TUYA SDK集成八十一难】【编译不通过】Manifest merger failed with multiple errors

Posted: 2022年 Oct 10日 09:49
by 快乐池塘的小青蛙

前置环境
目标:跑通tuya app 智能生活SDK Demo
平台:Android
步骤1:下载main分支,9-27号版本。https://github.com/tuya/tuya-home-andro ... sdk-sample
步骤2:按照文档配置好安全图片、key、secret。https://developer.tuya.com/cn/docs/app- ... %8C%20Demo

编译不通过报错

Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Manifest merger failed with multiple errors, see logs

系列四个manifest 合并错误

mergerfail.png

原因
是manifest文件替换key的姿势不对,直接替换demo的String,没有弄干净:

Code: Select all

<meta-data

android:name="TUYA_SMART_APPKEY"

android:value="${abcdefztuominzifuchuan}" />

<meta-data

android:name="TUYA_SMART_SECRET"

android:value="${qwertyui0tuominzifuchuanmnbvcxzsss}" />

改成:

Code: Select all

<meta-data

android:name="TUYA_SMART_APPKEY"

android:value="abcdefztuominzifuchuan" />

<meta-data

android:name="TUYA_SMART_SECRET"

android:value="qwertyui0tuominzifuchuanmnbvcxzsss" />