fangwei716 / 30-days-of-react-native

30 days of React Native demos
6.82k stars 1.46k forks source link

项目运行 react-native run-android 运行报错 #45

Open xiajian opened 7 years ago

xiajian commented 7 years ago

报错内容如下:

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Error: more than one library with package name 'com.projectseptember.RNGL'
  You can temporarily disable this error with android.enforceUniquePackageName=false
  However, this is temporary and will be enforced in 1.0

相当的沮丧,看 android/settings.gradleandroid/app/build.gradle 之后,发现 @fangwei716 重复引入了gl-react-native

android/settings.gradle 多引入了 :gl-react-native, 删掉如下行

include ':gl-react-native'
project(':gl-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/gl-react-native/android')

android/app/build.gradle 删掉如下行:

    compile project(':gl-react-native')

然后,就可以 happy 的运行起来了。

flyher commented 7 years ago

@xiajian Thank you very much, build success.. But the app show red screen:

undefined is not an object (evaluating 'viewPropTypes.style')
janreyho commented 7 years ago

@flyher +1

laszhiai commented 6 years ago

useful

Hideer commented 6 years ago

a issue for:Execution failed for task ':gl-react-native:prepareComFacebookFrescoDrawee0110Library'. what can i do?

ChangerHe commented 6 years ago

I had done it, and it told me 'Execution failed for task :app:prepareThirtyDaysOfReactNativeRNGLUnspecifiedLibrary', so what can I do?

xingaijian commented 5 years ago

这样之后,若提示找不到':gl-react-native',可删除android目录下的build文件夹,然后重新运行:react-native run-android