"Attribute data@host at AndroidManifest.xml requires a placeholder substitution but no value for <PACKAGE_NAME> is provided." is reported after the Tuya UI package is updated to 3.27.5. What can I do?
Last Updated on:2025-02-27 06:02:44
Add the following code to build.gralde of the app:
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
manifestPlaceholders = [
TUYA_SMART_APPKEY: "${properties.getProperty("appKey")}",
TUYA_SMART_SECRET: "${properties.getProperty("appSecret")}",
INTERNAL_HOST: "${properties.getProperty("app_scheme")}".toLowerCase(Locale.ENGLISH).concat('.app.tuya.com'),
ALEXA_AUTH_INTERNAL_HOST: "${properties.getProperty("app_scheme")}".toLowerCase(Locale.ENGLISH).concat('.applink.smart321.com'),
PACKAGE_NAME : applicationId
]