我正在尝试将 Firebase 性能库集成到我的 React Native 应用程序中。我正在关注 https://rnfirebase.io/perf/usage
的文档将以下行添加到 /android/build.gradle 后,我收到 java.lang.UnsupportedClassVersionError 错误
classpath 'com.google.firebase:perf-plugin:1.4.1'
以下是完整的错误信息:
A problem occurred configuring project ':amazon-cognito-identity-js'.
> Failed to notify project evaluation listener.
> java.lang.UnsupportedClassVersionError: com/google/firebase/perf/plugin/FirebasePerfPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
以下是我的gradle版本:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
以下是我机器上的java版本:
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)
知道问题出在哪里吗?