我对react-native还是陌生的,我已经认真遵循了每一步,这些都是官方的react native文档中给出的。运行此命令“ react-native run-android”时,出现此错误
which()
其中:
FAILURE: Build failed with an exception.
出了什么问题:
无法编译脚本Script '/home/gautam/AwesomeProject/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 156
'/home/gautam/AwesomeProject/node_modules/@react-native-community/cli-platform-android/native_modules.gradle'.
startup failed:
script '/home/gautam/AwesomeProject/node_modules/@react-native-community/cli-platform-android/native_modules.gradle': 156: unable to resolve class FileTreeBuilder
@ line 156, column 27.
final FileTreeBuilder treeBuilder = new FileTreeBuilder(outputDir)
^
script '/home/gautam/AwesomeProject/node_modules/@react-native-community/cli-platform-android/native_modules.gradle': 156: unable to resolve class FileTreeBuilder
@ line 156, column 41.
FileTreeBuilder treeBuilder = new FileTr
^
2 errors
选项运行以获取堆栈跟踪。使用--stacktrace
或--info
选项运行以获取更多日志输出。