【问题标题】:react native navigation- Cannot get property 'RNNKotlinVersion' on extra properties extension as it does not exist反应本机导航-无法在额外属性扩展上获取属性“RNNKotlinVersion”,因为它不存在
【发布时间】: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


    【解决方案1】:

    要解决上述问题,您需要运行npx rnn-link,然后运行npx react-native run-android

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-09-11
      • 2021-06-20
      • 2018-05-19
      • 2021-03-03
      • 2012-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多