AppLinks causes app to stop in Release mode only

AlexVilensAlexVilens USUniversity ✭✭

Hello,

I've implemented the AppLinks functionality into my app, and everything works as expected, but in Debug mode only.

Once, I build the Release mode, the App stops within this call:

Application.Current.AppLinks.RegisterLink(_appLink);

How do I diagnose the error?

Does Xamarin.Forms.AppLinks, or the installed Xamarin.GooglePlayServices.** require extra permissions?

Thank you

Tagged:

Answers

  • AlexVilensAlexVilens USUniversity ✭✭
    edited October 2017

    adb logcat shows the following messages:

    I/MonoDroid(24606): UNHANDLED EXCEPTION: I/MonoDroid(24606): Java.Lang.LinkageError: no non-static method "Lcom/google/android/gms/internal/zzkk;.start(Lcom/google/android/gms/common/api/GoogleApiClient;Lcom/google/android/gms/appindexing/Action;)Lcom/google/android/gms/common/api/PendingResult;" I/MonoDroid(24606): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at Java.Interop.JniEnvironment+InstanceMethods.GetMethodID (Java.Interop.JniObjectReference type, System.String name, System.String signature) [0x0005b] in <914c1770385e4ea6843dd175ebf0ed56>:0 I/MonoDroid(24606): at Android.Runtime.JNIEnv.GetMethodID (System.IntPtr kls, System.String name, System.String signature) [0x00007] in <b7ddb27b95be4aa3a8aba473a7355741>:0 I/MonoDroid(24606): at Android.Gms.AppIndexing.IAppIndexApiInvoker.Start (Android.Gms.Common.Apis.GoogleApiClient apiClient, Android.Gms.AppIndexing.Action action) [0x00015] in <03fa45696f5a4991b15147af9a872bd4>:0 I/MonoDroid(24606): at Android.Gms.AppIndexing.IAppIndexApiExtensions+<StartAsync>c__async1.MoveNext () [0x00021] in <03fa45696f5a4991b15147af9a872bd4>:0 I/MonoDroid(24606): --- End of stack trace from previous location where exception was thrown --- I/MonoDroid(24606): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at System.Runtime.CompilerServices.TaskAwaiter``1[TResult].GetResult () [0x00000] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at Xamarin.Forms.Platform.Android.AppLinks.AndroidAppLinks+<IndexItemAsync>d__18.MoveNext () [0x000ed] in <ddbe9b44ecfb428fadb780af03610517>:0 I/MonoDroid(24606): --- End of stack trace from previous location where exception was thrown --- I/MonoDroid(24606): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at Xamarin.Forms.Platform.Android.AppLinks.AndroidAppLinks+<RegisterLink>d__14.MoveNext () [0x00066] in <ddbe9b44ecfb428fadb780af03610517>:0 I/MonoDroid(24606): --- End of stack trace from previous location where exception was thrown --- I/MonoDroid(24606): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in <17cfc1623e424632b6dfdc66bd854c86>:0 I/MonoDroid(24606): at Android.App.SyncContext+<>c__DisplayClass2_0.<Post>b__0 () [0x00000] in <b7ddb27b95be4aa3a8aba473a7355741>:0 I/MonoDroid(24606): at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <b7ddb27b95be4aa3a8aba473a7355741>:0 I/MonoDroid(24606): at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in <b7ddb27b95be4aa3a8aba473a7355741>:0 I/MonoDroid(24606): at (wrapper dynamic-method) System.Object:19f9ef66-3997-42f7-8433-336c7ce3b08e (intptr,intptr) I/MonoDroid(24606): --- End of managed Java.Lang.LinkageError stack trace --- I/MonoDroid(24606): java.lang.NoSuchMethodError: no non-static method "Lcom/google/android/gms/internal/zzkk;.start(Lcom/google/android/gms/common/api/GoogleApiClient;Lcom/google/android/gms/appindexing/Action;)Lcom/google/android/gms/common/api/PendingResult;" I/MonoDroid(24606): at md5b60ffeb829f638581ab2bb9b1a7f4f3f.CellAdapter.n_onItemClick(Native Method) I/MonoDroid(24606): at md5b60ffeb829f638581ab2bb9b1a7f4f3f.CellAdapter.onItemClick(CellAdapter.java:89) I/MonoDroid(24606): at android.widget.AdapterView.performItemClick(AdapterView.java:305) I/MonoDroid(24606): at android.widget.AbsListView.performItemClick(AbsListView.java:1146) I/MonoDroid(24606): at android.widget.AbsListView$PerformClick.run(AbsListView.java:3053) I/MonoDroid(24606): at android.widget.AbsListView$3.run(AbsListView.java:3860) I/MonoDroid(24606): at android.os.Handler.handleCallback(Handler.java:739) I/MonoDroid(24606): at android.os.Handler.dispatchMessage(Handler.java:95) I/MonoDroid(24606): at android.os.Looper.loop(Looper.java:135) I/MonoDroid(24606): at android.app.ActivityThread.main(ActivityThread.java:5254) I/MonoDroid(24606): at java.lang.reflect.Method.invoke(Native Method) I/MonoDroid(24606): at java.lang.reflect.Method.invoke(Method.java:372) I/MonoDroid(24606): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) I/MonoDroid(24606): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) D/AndroidRuntime(24606): Shutting down VM E/AndroidRuntime(24606): FATAL EXCEPTION: main

  • AlexVilensAlexVilens USUniversity ✭✭

    I've reported this as a bug here: https://bugzilla.xamarin.com/show_bug.cgi?id=59917

  • AlexVilensAlexVilens USUniversity ✭✭

    Could anyone please help? Thank you!

Sign In or Register to comment.