【发布时间】:2021-05-21 20:48:21
【问题描述】:
运行 npx react-native run-android 时安装后的 react-native 导航
你会得到类似的错误
1: Task failed with an exception.
-----------
* Where:
Build file '/Users/ajayk/code/mine/gramin/judo/node_modules/react-native-navigation/lib/android/app/build.gradle' line: 5
* What went wrong:
A problem occurred evaluating project ':react-native-navigation'.
> Plugin with id 'kotlin-android' not found.
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':react-native-navigation'.
> compileSdkVersion is not specified.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
1: 任务因异常而失败。
-
在哪里: 构建文件'/Users/ajayk/code/mine/gramin/judo/node_modules/react-native-navigation/lib/android/app/build.gradle' 行:15
-
出了什么问题: 评估项目“:react-native-navigation”时出现问题。
无法在额外属性扩展上获取属性“RNNKotlinVersion”,因为它不存在
- 尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
【问题讨论】:
标签: react-native react-native-navigation