我正在使用firebase动态链接,当我试图使用名为com.Google.android.gms.common.API.APIException的FATAL EXCEPTION来解决它时,请帮助我
这是我的代码
private voID buildreferrallink() { //https://j8b99.app.goo.gl/ String domain = "j8b99" + ".app.goo.gl"; Dynamiclink.Builder builder = FirebaseDynamiclinks.getInstance() .createDynamiclink() .setDynamiclinkDomain(domain) .setAndroIDParameters(new Dynamiclink.AndroIDParameters.Builder() .setMinimumVersion(BuildConfig.VERSION_CODE) .build()) .setlink(Uri.parse("https://play.Google.com/store/apps/details?ID=com.games4playstore.aroundyou")); builder.buildShortDynamiclink().addOnCompleteListener(this, new OnCompleteListener<ShortDynamiclink>() { @OverrIDe public voID onComplete(@NonNull Task<ShortDynamiclink> task) { Uri shortlink = task.getResult().getShortlink(); Log.e("test", "Shortlink: " + shortlink); } });}
这是我的崩溃报告
07-28 17:19:22.526 21231-21231/com.games4playstore.aroundyou E/AndroIDRuntime: FATAL EXCEPTION: main Process: com.games4playstore.aroundyou, PID: 21231 com.Google.androID.gms.tasks.RuntimeExecutionException: com.Google.androID.gms.common.API.APIException at com.Google.androID.gms.tasks.zzn.getResult(UnkNown Source) at com.games4playstore.aroundyou.MainActivity.onComplete(MainActivity.java:160) at com.Google.androID.gms.tasks.zzf.run(UnkNown Source) at androID.os.Handler.handleCallback(Handler.java:739) at androID.os.Handler.dispatchMessage(Handler.java:95) at androID.os.Looper.loop(Looper.java:145) at androID.app.ActivityThread.main(ActivityThread.java:6946) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:1199) Caused by: com.Google.androID.gms.common.API.APIException at com.Google.androID.gms.internal.zzbeq.zza(UnkNown Source) at com.Google.androID.gms.internal.zg.zza(UnkNown Source) at com.Google.androID.gms.internal.zl.onTransact(UnkNown Source) at androID.os.Binder.execTransact(Binder.java:446)
解决方法:
这是AndroID服务器端的动态链接问题 – 它已经解决,修复程序很快就会推出.
总结以上是内存溢出为你收集整理的com.google.android.gms.common.api.ApiException,同时缩短范围全部内容,希望文章能够帮你解决com.google.android.gms.common.api.ApiException,同时缩短范围所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)