0

构建只是说:

Build file '/.../node_modules/@bugsnag/react-native/android/build.gradle' line: 17

* What went wrong:
A problem occurred evaluating project ':bugsnag_react-native'.
> java.lang.ExceptionInInitializerError (no error message)

提到的线只是apply plugin: "kotlin-android"

我们只是将它添加到项目中并遵循https://docs.bugsnag.com/platforms/react-native/react-native/#installation

4

1 回答 1

0

我遇到了同样的问题,为我解决的问题是将 Kotlin 版本更新android/build.gradle1.3.72.

buildscript {
  ext {
    ...
    ext.kotlinVersion = '1.3.72'
  }
   ...

这个 SO 答案帮助我找出了问题所在:https ://stackoverflow.com/a/62475745

于 2020-12-08T11:12:30.480 回答