已解决:React本机Android构建重复错误

已解决:React本机Android构建重复错误,android,react-native,react-native-code-push,Android,React Native,React Native Code Push,我在将我的android应用程序与android Studio捆绑(使用react native)时遇到问题。它向我显示了以下错误: [string/CodePushDeploymentKey] /Users/{user}/{app}/android/app/src/main/res/values/strings.xml [string/CodePushDeploymentKey] /Users/{user}/{app}/android/app/build/generated/res/res

我在将我的android应用程序与android Studio捆绑(使用react native)时遇到问题。它向我显示了以下错误:

[string/CodePushDeploymentKey] /Users/{user}/{app}/android/app/src/main/res/values/strings.xml  
[string/CodePushDeploymentKey] /Users/{user}/{app}/android/app/build/generated/res/resValues/release/values/gradleResValues.xml: Error: Duplicate resources
我的strings.xml文件看起来很正常:

<resources>
    <string name="app_name">{appname}</string>
    <string name="appCenterCrashes_whenToSendCrashes" moduleConfig="true" translatable="false">DO_NOT_ASK_JAVASCRIPT</string>
    <string name="appCenterAnalytics_whenToEnableAnalytics" moduleConfig="true" translatable="false">ALWAYS_SEND</string>
    <string moduleConfig="true" name="CodePushDeploymentKey">KEY</string>
</resources>

{appname}
不要问
总是发送
钥匙
非常感谢你的帮助

编辑: 我解决了这个问题。我使用了多级键,需要删除strings.xml中的codepushdeployment行