NeteaseNews
NeteaseNews copied to clipboard
运行报错
BUILD FAILED FAILURE: Build failed with an exception.
Total time: 7.273 secs
-
Where: Build file 'D:\webstormProject\NeteaseNews\node_modules\react-native-splash-screen\android\build.gradle' line: 22
-
What went wrong: A problem occurred evaluating project ':react-native-splash-screen'.
Could not find method implementation() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
我也遇到同样的问题,环境是Windows
Could not find method implementation() for arguments [project ':react-native-splash-screen'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Open File
你解决了吗? @Timmy-zzh
我刚刚把项目clone下来跑过了,是可以正常运行的。windows环境, 跑的android。 由于没有mac设备所以目前不支持IOS。@ZhangWei2008 @ @Timmy-zzh
你想下这个库:react-native-splash-screen是不是还需要其他的配置,或者你到其他人电脑跑下@h406621397
我就是跑的Android 报错 @Timmy-zzh @h406621397
这库主要是改android原生的文件,改了十几个,也没什么特别的配置。我晚上回家用自己的电脑再跑一下试试 @ZhangWei2008 @Timmy-zzh
我用家里的笔记本也试过了,项目直接clone下来 yarn + npm run android 两个命令就跑起来了,没改任何东西。 可能是你们的环境问题。 @ZhangWei2008 @Timmy-zzh