firebase - com.google.android.gms.common.api.ApiException while making shorturl -
i'm using firebase dynamic links, when i'm trying getshortlink crashing fatal exception called com.google.android.gms.common.api.apiexception please me here code
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); } }); }
here crash report
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 @ com.google.android.gms.tasks.zzn.getresult(unknown source) @ com.games4playstore.aroundyou.mainactivity$3.oncomplete(mainactivity.java:160) @ com.google.android.gms.tasks.zzf.run(unknown source) @ android.os.handler.handlecallback(handler.java:739) @ android.os.handler.dispatchmessage(handler.java:95) @ android.os.looper.loop(looper.java:145) @ android.app.activitythread.main(activitythread.java:6946) @ java.lang.reflect.method.invoke(native method) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1404) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1199) caused by: com.google.android.gms.common.api.apiexception @ com.google.android.gms.internal.zzbeq.zza(unknown source) @ com.google.android.gms.internal.zg.zza(unknown source) @ com.google.android.gms.internal.zl.ontransact(unknown source) @ android.os.binder.exectransact(binder.java:446)
this issue on server side dynamic links on android - has been resolved , fix should rolling out soon.
Comments
Post a Comment