简体   繁体   中英

I am facing issue in Flutter while run my application

E/AndroidRuntime(15809): java.lang.NoSuchMethodError: No static method isAtLeastR()Z in class Lcom/google/android/gms/common/util/PlatformVersion; or its super classes (declaration of 'com.google.android.gms.common.util.PlatformVersion' appears in /data/app/~~JfP3wXyoXYoELpSoGWT6BA==/com.sales.track-rakLI-SsZSlGKP6o0EIh4Q==/base.apk) E/AndroidRuntime(15809): at com.google.android.gms.common.api.GoogleApi.<init>(com.google.android.gms:play-services-base@@18.0.1:8) E/AndroidRuntime(15809): at com.google.android.gms.common.api.GoogleApi.<init>(com.google.android.gms:play-services-base@@18.0.1:22) E/AndroidRuntime(15809): at com.google.android.gms.common.api.GoogleApi.<init>(com.google.android.gms:play-services-base@@18.0.1:23) E/AndroidRuntime(15809): at com.google.android.gms.location.FusedLocationProviderClient.<init>(Unknown Source:8) E/AndroidRuntime(15809): at com.google.android.gms.location.LocationServices.getFusedLocationProviderClient(Unknown Source:2) E/AndroidRuntime(15809): at proto.inventa.cct.com.inventalibrary.InventaSdk.initialize(Unknown Source:70) E/AndroidRuntime(15809): at proto.inventa.cct.com.inventalibrary.InventaSdk.initializeInventaSdk(Unknown Source:2) E/AndroidRuntime(15809): at com.spicemoney.spiceimpact.spice_impact.DistrictApplications.onCreate(DistrictApplications.java:46) E/AndroidRuntime(15809): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192) E/AndroidRuntime(15809): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7283) E/AndroidRuntime(15809): at android.app.ActivityThread.access$1700(ActivityThread.java:303) E/AndroidRuntime(15809): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2183) E/AndroidRuntime(15809): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime(15809): at android.os.Looper.loop(Looper.java:261) E/AndroidRuntime(15809): at android.app.ActivityThread.main(ActivityThread.java:8279) E/AndroidRuntime(15809): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(15809): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632) E/AndroidRuntime(15809): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

There is the solution you need to reduce the dependency version google-sign plugin inside build.gradle.

Our basic object is to change support number as per other dependencies in gms service based

Convert this to

implementation ('com.google.android.gms:play-services-auth:20.0.1')

This like that

implementation ('com.google.android.gms:play-services-auth:16.+'){ exclude group: 'com.android.support', module:'support-v4' }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM