android: VS 16.6.0 Prev 1.0 App crashes on "Cannot create instance of type ... no Java peer type found" after incremental build
Sometimes after even just a small change in code. Click deploy, builds and deploys with no errors and then crashes at runtime. This is just a sample with this SettingsFragment, but it is regularly happening on two projects I’m working on. Clean, rebuild and deploy and it is good again. Not dissimilar to the other problems reported with earlier previews where you had to clean/build/deploy way too much.
2020-03-18 16:53:03.399 12333-12333/com.glmsoftware.obdnowproto E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.glmsoftware.obdnowproto, PID: 12333
android.runtime.JavaProxyThrowable: System.NotSupportedException: Cannot create instance of type 'com.glmsoftware.OBDNowProto.SettingsFragmentCompat': no Java peer type found.
at Java.Interop.JniPeerMembers+JniInstanceMethods..ctor (System.Type declaringType) [0x0004b] in <e3e4dfa992a7411b85acfe193481be3e>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.GetConstructorsForType (System.Type declaringType) [0x00031] in <e3e4dfa992a7411b85acfe193481be3e>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.StartCreateInstance (System.String constructorSignature, System.Type declaringType, Java.Interop.JniArgumentValue* parameters) [0x00038] in <e3e4dfa992a7411b85acfe193481be3e>:0
at AndroidX.Preference.PreferenceFragmentCompat..ctor () [0x00034] in <005e3ae6340747e1aea6d08b095cf286>:0
at com.glmsoftware.OBDNowProto.SettingsFragmentCompat..ctor () [0x00026] in <a8dbee4be1674aa08cce57b50f21e347>:0
at com.glmsoftware.OBDNowProto.SettingsActivity.OnCreate (Android.OS.Bundle bundle) [0x00083] in <a8dbee4be1674aa08cce57b50f21e347>:0
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x00011] in <c56099afccf04721853684f376a89527>:0
at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.3(intptr,intptr,intptr)
at crc64596a13587a898911.SettingsActivity.n_onCreate(Native Method)
at crc64596a13587a898911.SettingsActivity.onCreate(SettingsActivity.java:40)
at android.app.Activity.performCreate(Activity.java:7825)
at android.app.Activity.performCreate(Activity.java:7814)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 43 (25 by maintainers)
Commits related to this issue
- [tests] trying to repro 4415 Test for: https://github.com/xamarin/xamarin-android/issues/4415 I don't understand why, this somehow passes??? — committed to jonathanpeppers/xamarin-android by jonathanpeppers 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- Return of the Strings Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: https://github.com/xamarin/xamarin-android/commit/ce2bc689a19cb45f7d7bfdd371c16c54b018a020 This commit pa... — committed to grendello/xamarin-android by grendello 7 years ago
- [monodroid] Return of the Strings (#4487) Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: ce2bc689a19cb45f7d7bfdd371c16c54b018a020 Commit ce2bc689 optimized type mappings b... — committed to dotnet/android by grendello 7 years ago
- [monodroid] Return of the Strings (#4487) Fixes: https://github.com/xamarin/xamarin-android/issues/4415 Context: ce2bc689a19cb45f7d7bfdd371c16c54b018a020 Commit ce2bc689 optimized type mappings b... — committed to dotnet/android by grendello 7 years ago
@jonathanpeppers . Deterministic true seemed to work over the weekend. However today I’m back to cleaning before building/deploying for each change of code - even if it is just commenting a single line and then uncomment it.