我在我的应用程序中使用 facebook 登录。我已经创建了 facebook 应用程序 ID。如果我在 values/strings.xml 中使用 facebook app id 它工作正常并且我能够在 android studio 中生成签名的 apk。如果我在 values-ta/strings.xml 和 values-de/strings.xml 中使用该 facebook 应用程序 ID,它会显示错误并且我无法生成 apk。
Error: Resources referenced from the manifest cannot vary by configuration (except for version qualifiers, e.g. -v21.) Found variation in ta.
Elements in the manifest can reference resources, but those resources cannot vary across configurations (except as a special case, by version, and except for a few specific package attributes such as the application title and icon.)
谁能帮我解决这个问题。
谢谢。
最佳答案
解决方案是我们需要在该特定字符串资源中添加属性 translatable="false"
。
关于Android : Facebook app id showing error in values-ta/strings. xml 无法生成签名的 apk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35388688/