Error:more than one library with package name
在运行git上clone下来的react-native项目时遇到的问题:
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Error: more than one library with package name 'com.xxx.xxx'(包名)
You can temporarily disable this error with android.enforceUniquePackageName=false
However, this is temporary and will be enforced in 1.0
问题引起的原因
android/settings.gradle和android/app/build.gradle中引入了同样的包导致
解决方案:
对比android/settings.gradle和android/app/build.gradle中引入的包,找到相同的进项删除。
总结
去除相同引用后就可以编译过去了。