gpt4 book ai didi

android - java.lang.NoSuchMethodError : No static method isAtLeastR()Z

转载 作者:行者123 更新时间:2023-12-03 13:27:12 24 4
gpt4 key购买 nike

我的应用程序运行良好,但突然我开始收到此错误

java.lang.NoSuchMethodError: No static method isAtLeastR()Z in class Landroidx/core/os/BuildCompat; or its super classes (declaration of 'androidx.core.os.BuildCompat' appears in /data/app/com.app.goflatmates-RZKwS2h6hav==/base.apk) at com.google.android.gms.common.util.PlatformVersion.isAtLeastR(com.google.android.gms:play-services-basement@@17.2.0:21) at com.google.android.gms.common.api.GoogleApi.zaa(com.google.android.gms:play-services-base@@17.2.0:128) at com.google.android.gms.common.api.GoogleApi.(com.google.android.gms:play-services-base@@17.2.0:23) at com.google.android.gms.common.api.GoogleApi.(com.google.android.gms:play-services-base@@17.2.0:54) at com.google.android.gms.auth.api.signin.GoogleSignInClient.(Unknown Source:3) at com.google.android.gms.auth.api.signin.GoogleSignIn.getClient(Unknown Source:3



问题出现在这一行
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestEmail()
.build();

mGoogleSignInClient = GoogleSignIn.getClient(this, gso);

最佳答案

我对 React Native 也有这个问题。我通过在我的 app/build.gradle 中设置它来修复它:

dependencies {
// ...
implementation 'com.google.android.gms:play-services-base:17.1.0'
// ...
}

这是因为几天前 Google play-services-base library 引入了一项重大更改。如果您使用 implementation 'com.google.android.gms:play-services-base:+'它将下载最新版本的库,将该错误引入您的应用程序。希望有帮助。

关于android - java.lang.NoSuchMethodError : No static method isAtLeastR()Z,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60812702/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com