Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

java.lang.reflect.InvocationTargetException, Fragment crashing

ArvindrajaArvindraja INMember ✭✭✭
edited November 2016 in Xamarin.Android

hii Xamarin
my app running well in debugging mode(while connected to Visual Studio), when i disconnected it from visual studio(can say release mode) my app got crash at one place while pressing back or changing tab.
Errors getting while pressing any button or navigating

      11-25 07:50:12.080: E/dalvikvm(4754): Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.zze.zzb
        11-25 07:50:12.116: E/GMPM(4754): GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services.  Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.
        11-25 07:50:12.116: E/GMPM(4754): Scheduler not set. Not logging error/warn.
        11-25 07:50:12.144: E/GMPM(4754): Uploading is not possible. App measurement disabled
        11-25 07:50:13.640: E/AndroidRuntime(4754): FATAL EXCEPTION: main
        11-25 07:50:13.640: E/AndroidRuntime(4754): java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        11-25 07:50:13.640: E/AndroidRuntime(4754):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
        11-25 07:50:13.640: E/AndroidRuntime(4754):     at dalvik.system.NativeStart.main(Native Method)
        11-25 07:50:13.640: E/AndroidRuntime(4754): Caused by: java.lang.reflect.InvocationTargetException
        11-25 07:50:13.640: E/AndroidRuntime(4754):     at java.lang.reflect.Method.invokeNative(Native Method)
        11-25 07:50:13.640: E/AndroidRuntime(4754):     at java.lang.reflect.Method.invoke(Method.java:511)
        11-25 07:50:13.640: E/AndroidRuntime(4754):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
        11-25 07:50:13.640: E/AndroidRuntime(4754):     ... 2 more
        11-25 07:50:13.640: E/AndroidRuntime(4754): Caused by: android.runtime.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at SISAPP.PCL.SAL.SisApi.AddHeaders (System.Net.Http.HttpClient client) [0x00016] in <b86eb8372642480ebcfd2777367056ef>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at SISAPP.PCL.SAL.SisApi+<Get>d__0.MoveNext () [0x000e6] in <b86eb8372642480ebcfd2777367056ef>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754): --- End of stack trace from previous location where exception was thrown ---
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at SISAPP.PCL.DAL.AlertsDAL+<GetAnnouncements>d__0.MoveNext () [0x0008c] in <b86eb8372642480ebcfd2777367056ef>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754): --- End of stack trace from previous location where exception was thrown ---
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at SISAPP.Droid.MainActivity+<GetLogin>d__d.MoveNext () [0x00309] in <11374136f45f47c8bcebd0ea6d2cf09b>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754): --- End of stack trace from previous location where exception was thrown ---
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at SISAPP.Droid.MainActivity+<OnCreate>d__5.MoveNext () [0x00248] in <11374136f45f47c8bcebd0ea6d2cf09b>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754): --- End of stack trace from previous location where exception was thrown ---
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (System.Object state) [0x00000] in <ebe69a73e134432d8c777ad7ebb2f6f9>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at Android.App.SyncContext+<Post>c__AnonStorey0.<>m__0 () [0x00000] in <b2cb02ca0ae74489ab1b1d4742b1225b>:0 
        11-25 07:50:13.640: E/AndroidRuntime(4754):   at Java.Lang.Thread+RunnableImplementor.Run () [
        11-25 07:53:04.772: E/dalvikvm(6524): Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.zze.zzb
        11-25 07:53:04.804: E/GMPM(6524): GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services.  Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.
        11-25 07:53:04.804: E/GMPM(6524): Scheduler not set. Not logging error/warn.
        11-25 07:53:04.820: E/GMPM(6524): Uploading is not possible. App measurement disabled
        11-25 07:53:16.648: E/ActivityThread(603): Failed to find provider info for com.android.inputmethod.latin.dictionarypack
        11-25 07:53:16.692: E/BinaryDictionaryGetter(603): Could not find a dictionary pack

please help me, i attaching the log file got from DDMS plz go trough that. thank you :)

Sign In or Register to comment.