Vik*_*Roy 11 android firebase react-native
我正在尝试将 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
Run Code Online (Sandbox Code Playgroud)
以下是我的gradle版本:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
Run Code Online (Sandbox Code Playgroud)
以下是我机器上的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)
Run Code Online (Sandbox Code Playgroud)
知道问题是什么吗?
| 归档时间: |
|
| 查看次数: |
6514 次 |
| 最近记录: |