Xamarin Android random crashing - Could not activate JNI handle - c#

I have quite a complex Xamarin Android application that I have been tasked with debugging. The crash is hard to reproduce as it happens at random points but always provides the same exception in the log.
--------- beginning of crash
04-22 14:03:05.301 10663 10663 E AndroidRuntime: FATAL EXCEPTION: main
04-22 14:03:05.301 10663 10663 E AndroidRuntime: Process: com.MYAPP.mobileclient.droid, PID: 10663
04-22 14:03:05.301 10663 10663 E AndroidRuntime: android.runtime.JavaProxyThrowable: System.NotSupportedException: Could not activate JNI Handle 0xbef7b2d8 (key_handle 0x5bc144) of Java type 'md57b8b71e5064efd897350f33a791895ef/MainView' as managed type 'MYAPP.MobileClient.Droid.Views.MainView'. ---> MYAPP.MobileClient.Common.Components.IocException: Failed to resolve type 'MYAPP.MobileClient.Core.Interfaces.Components.IViewModelParameterCache'.
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at MYAPP.MobileClient.Common.Components.Ioc.Resolve (System.Type type) [0x00057] in :0
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at MYAPP.MobileClient.Common.Components.Ioc.Resolve[T] () [0x00001] in :0
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at MYAPP.MobileClient.Droid.Views.ViewFragmentBase`1[TViewModel]..ctor () [0x00008] in <65db39348da44d87a292813577bab26d>:0
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at MYAPP.MobileClient.Droid.Views.MainView..ctor () [0x0000b] in <65db39348da44d87a292813577bab26d>:0
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at (wrapper dynamic-method) System.Object.ebf54824-4bd6-44f7-b956-299b42075317(intptr,object[])
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at Java.Interop.TypeManager.n_Activate (System.IntPtr jnienv, System.IntPtr jclass, System.IntPtr typename_ptr, System.IntPtr signature_ptr, System.IntPtr jobject, System.IntPtr parameters_ptr) [0x000df] in <3bb26451d98f4ed79f1edd435d37ff28>:0
04-22 14:03:05.301 10663 10663 E AndroidRuntime: --- End of inner exception stack trace ---
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at Java.Interop.TypeManager.n_Activate (System.IntPtr jnienv, System.IntPtr jclass, System.IntPtr typename_ptr, System.IntPtr signature_ptr, System.IntPtr jobject, System.IntPtr parameters_ptr) [0x00168] in <3bb26451d98f4ed79f1edd435d37ff28>:0
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at (wrapper dynamic-method) System.Object.c1555998-c2d0-4707-83f7-4233240801ad(intptr,intptr,intptr,intptr,intptr,intptr)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at mono.android.TypeManager.n_activate(Native Method)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at mono.android.TypeManager.Activate(TypeManager.java:7)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at md57b8b71e5064efd897350f33a791895ef.MainView.(MainView.java:29)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at java.lang.Class.newInstance(Native Method)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at android.app.Instrumentation.newActivity(Instrumentation.java:1078)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2557)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6130)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
04-22 14:03:05.301 10663 10663 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
04-22 14:03:05.310 1768 2496 W ActivityManager: Force finishing activity com.MYAPP.mobileclient.droid/md57b8b71e5064efd897350f33a791895ef.MainView
04-22 14:03:05.812 1768 1849 W ActivityManager: Activity pause timeout for ActivityRecord{23b6ec6 u0 com.MYAPP.mobileclient.droid/md57b8b71e5064efd897350f33a791895ef.MainView t371 f}
04-22 14:03:05.834 1768 1849 I WindowManager: Failed to capture screenshot of Token{232ae87 ActivityRecord{23b6ec6 u0 com.MYAPP.mobileclient.droid/md57b8b71e5064efd897350f33a791895ef.MainView t371 f}} appWin=Window{2dc63fb u0 Starting com.MYAPP.mobileclient.droid} drawState=4
04-22 14:03:06.695 1768 1897 W WindowManager: Failed looking up window
04-22 14:03:06.695 1768 1897 W WindowManager: java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W#795818a does not exist
04-22 14:03:06.695 1768 1897 W WindowManager: at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9486)
04-22 14:03:06.695 1768 1897 W WindowManager: at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9477)
04-22 14:03:06.695 1768 1897 W WindowManager: at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2416)
04-22 14:03:06.695 1768 1897 W WindowManager: at com.android.server.wm.Session.remove(Session.java:202)
04-22 14:03:06.695 1768 1897 W WindowManager: at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3290)
04-22 14:03:06.695 1768 1897 W WindowManager: at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5923)
04-22 14:03:06.695 1768 1897 W WindowManager: at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3629)
04-22 14:03:06.695 1768 1897 W WindowManager: at android.os.Handler.dispatchMessage(Handler.java:102)
04-22 14:03:06.695 1768 1897 W WindowManager: at android.os.Looper.loop(Looper.java:154)
04-22 14:03:06.695 1768 1897 W WindowManager: at android.os.HandlerThread.run(HandlerThread.java:61)
04-22 14:03:06.695 1768 1897 W WindowManager: at com.android.server.ServiceThread.run(ServiceThread.java:46)
04-22 14:03:14.584 1768 3065 D BluetoothManagerService: checkIfCallerIsForegroundUser: valid=true callingUser=0 parentUser=-10000 foregroundUser=0
04-22 14:03:16.725 1768 1849 W ActivityManager: Activity destroy timeout for ActivityRecord{23b6ec6 u0 com.MYAPP.mobileclient.droid/md57b8b71e5064efd897350f33a791895ef.MainView t371 f}
04-22 14:03:17.582 326 2074 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
04-22 14:03:35.422 326 2074 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
04-22 14:03:50.668 1768 1849 I ActivityManager: Killing 9562:com.android.musicfx/u0a23 (adj 906): empty #17
04-22 14:03:50.806 1768 3101 D ActivityManager: cleanUpApplicationRecord -- 9562
Below is the start of MainView in question:
namespace MYAPP.MobileClient.Droid.Views
{
[Activity]
public class MainView : ViewFragmentBase<MainViewModel>, NavigationView.IOnNavigationItemSelectedListener
{
private readonly string _preferencesFileName = "DsdPreferences";
private FlyoutLayout _drawer;
private DrawerToggle _drawerToggle;
private NavigationView _navigationView;
protected override int GetViewResourceId()
{
return Resource.Layout.main;
}
protected override int GetFragmentResourceId()
{
return Resource.Id.drawer_content;
}
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
// get a handle to all inner views
_drawer = this.FindViewById<FlyoutLayout>(Resource.Id.drawer);
_navigationView = this.FindViewById<NavigationView>(Resource.Id.navigationView);
this.SetupNavigationView();
and the View:
<?xml version="1.0" encoding="utf-8"?>
<FlyoutLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:id="#+id/drawer"
style="#style/Layout">
<FrameLayout
android:id="#+id/drawer_content"
style="#style/Layout" />
<android.support.design.widget.NavigationView
android:id="#+id/navigationView"
style="#style/Navigation.View"
local:headerLayout="#layout/main_navigation_header"
local:menu="#menu/navigation_drawer"
local:itemIconTint="#drawable/drawer_item"
local:itemTextColor="#drawable/drawer_item" />
</FlyoutLayout>

Related

Web request suddently stopped working [closed]

I am working on a Xamarin.Forms PCL project which uses web requests to log users in. It has been working fine since I created the app a couple months ago but suddenly today it stopped working and I haven't changed anything in the login code.
The web request is ran with
var values = new Dictionary<string, string>
{
{"username", username },
{"password", password }
};
var content = new FormUrlEncodedContent(values);
var response = await App.client.PostAsync(App.URL + "account.php", content);
var responseString = await response.Content.ReadAsStringAsync();
string page_result = responseString;
It goes into break mode and says
System.Threading.Tasks.TaskCanceledException: A task was canceled.
When I push the button that runs the web request the output says
03-24 21:29:44.062 E/mono ( 9248): Unhandled Exception:
03-24 21:29:44.062 E/mono ( 9248): System.Threading.Tasks.TaskCanceledException: A task was canceled.
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00026] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Net.Http.HttpClientHandler+d__64.MoveNext () [0x004f5] in :0
03-24 21:29:44.062 E/mono ( 9248): --- End of stack trace from previous location where exception was thrown ---
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0001a] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Net.Http.HttpClient+d__49.MoveNext () [0x000ca] in :0
03-24 21:29:44.062 E/mono ( 9248): --- End of stack trace from previous location where exception was thrown ---
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0001a] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () [0x00000] in :0
03-24 21:29:44.062 E/mono ( 9248): at SocialNetwork.LoginPage+d__2.MoveNext () [0x000a1] in C:\Users\Jacob\OneDrive\Documents\Visual Studio\SocialMedia\SocialNetwork\SocialNetwork\LoginPage.xaml.cs:36
03-24 21:29:44.062 E/mono ( 9248): --- End of stack trace from previous location where exception was thrown ---
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0001a] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0
03-24 21:29:44.062 E/mono ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in :0
03-24 21:29:44.062 E/mono ( 9248): at SocialNetwork.LoginPage+d__1.MoveNext () [0x0002c] in C:\Users\Jacob\OneDrive\Documents\Visual Studio\SocialMedia\SocialNetwork\SocialNetwork\LoginPage.xaml.cs:23
03-24 21:29:44.062 E/mono ( 9248): --- End of stack trace from previous location where exception was thrown ---
03-24 21:29:44.062 E/mono ( 9248): at (wrapper dynamic-method) System.Object.b3fe65b9-9c99-495b-aeb4-4948b63ae737(intptr,intptr)
03-24 21:29:44.082 E/mono-rt ( 9248): [ERROR] FATAL UNHANDLED EXCEPTION: System.Threading.Tasks.TaskCanceledException: A task was canceled.
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00026] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () [0x00000] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Net.Http.HttpClientHandler+d__64.MoveNext () [0x004f5] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): --- End of stack trace from previous location where exception was thrown ---
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0001a] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Net.Http.HttpClient+d__49.MoveNext () [0x000ca] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): --- End of stack trace from previous location where exception was thrown ---
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0001a] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () [0x00000] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at SocialNetwork.LoginPage+d__2.MoveNext () [0x000a1] in C:\Users\Jacob\OneDrive\Documents\Visual Studio\SocialMedia\SocialNetwork\SocialNetwork\LoginPage.xaml.cs:36
03-24 21:29:44.082 E/mono-rt ( 9248): --- End of stack trace from previous location where exception was thrown ---
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0001a] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in :0
03-24 21:29:44.082 E/mono-rt ( 9248): at SocialNetwork.LoginPage+d__1.MoveNext () [0x0002c] in C:\Users\Jacob\OneDrive\Documents\Visual Studio\SocialMedia\SocialNetwork\SocialNetwork\LoginPage.xaml.cs:23
03-24 21:29:44.082 E/mono-rt ( 9248): --- End of stack trace from previous location where exception was thrown ---
03-24 21:29:44.082 E/mono-rt ( 9248): at (wrapper dynamic-method) System.Object.b3fe65b9-9c99-495b-aeb4-4948b63ae737(intptr,intptr)
The issue was on my backend.
I tried connecting to my database in the browser directly and realised the login was updated.

NativeScript-Vue Failed to find module

I am following the NativeScript-vue tutorial here:
https://nativescript-vue.org/en/docs/getting-started/quick-start/
Does anyone know a solution to this error.I am using Windows pc. Calling module function i’m getting an error.How to solve
System.err: java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException:
System.err:
System.err: Error calling module function
System.err:
System.err: Error: com.tns.NativeScriptException: Failed to find module: "C:\Users\mertA\Desktop\firstNativeApp\first-nativescript-app\src\main.js", relative to: app/tns_modules/
System.err: com.tns.Module.resolvePathHelper(Module.java:146)
System.err: com.tns.Module.resolvePath(Module.java:55)
System.err: com.tns.Runtime.runModule(Native Method)
System.err: com.tns.Runtime.runModule(Runtime.java:530)
System.err: com.tns.Runtime.run(Runtime.java:522)
System.err: com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21)
System.err: android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1118)
System.err: android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791)
System.err: android.app.ActivityThread.-wrap1(Unknown Source:0)
System.err: android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
System.err: android.os.Handler.dispatchMessage(Handler.java:105)
System.err: android.os.Looper.loop(Looper.java:164)
System.err: android.app.ActivityThread.main(ActivityThread.java:6541)
System.err: java.lang.reflect.Method.invoke(Native Method)
System.err: com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
System.err: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
System.err: File: "<unknown>, line: 1, column: 265
System.err:
System.err: StackTrace:
System.err: Frame: function:'require', file:'', line: 1, column: 266
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.application/files/app/app.js', line: 1, column: 583
System.err: Frame: function:'t', file:'file:///data/data/org.nativescript.application/files/app/app.js', line: 1, column: 161
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.application/files/app/app.js', line: 1, column: 538
System.err: Frame: function:'t', file:'file:///data/data/org.nativescript.application/files/app/app.js', line: 1, column: 161
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.application/files/app/app.js', line: 1, column: 511
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.application/files/app/app.js', line: 1, column: 520
System.err: Frame: function:'require', file:'', line: 1, column: 266
System.err:
System.err:
System.err: Error: com.tns.NativeScriptException: Failed to find module:

Gluon android apk produces a black screen when tested with an emulator

I followed the tutorial for the gluon mobile android setup, however, when creating an apk and running it on an emulator, a black screen shows and basically crashes the app. This is currently my build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.3.10'
classpath 'com.google.gms:google-services:3.1.0'
}
}
apply plugin: 'org.javafxports.jfxmobile'
repositories {
jcenter()
maven {
url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
}
mavenCentral()
}
mainClassName = 'com.gluonapplication.GluonApplication'
dependencies {
compile 'com.gluonhq:charm:4.4.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.firebase:firebase-admin:5.9.0'
compile 'com.jfoenix:jfoenix:8.0.1'
compile "com.android.support:support-v4:25.1.1"
androidRuntime 'com.gluonhq:charm-down-core-android:3.7.2'
}
jfxmobile {
javafxportsVersion = '8.60.9'
downConfig {
version = '3.7.2'
// Do not edit the line below. Use Gluon Mobile Settings in your project context menu instead
plugins 'display', 'lifecycle', 'statusbar', 'storage', 'pictures'
}
android {
manifest = 'src/android/AndroidManifest.xml'
androidSdk = "C:/Android/android-sdk"
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/INDEX.LIST'
exclude 'META-INF/io.netty.versions.properties'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/LGPL2.1'
}
}
ios {
infoPList = file('src/ios/Default-Info.plist')
forceLinkClasses = [
'com.gluonhq.**.*',
'javax.annotations.**.*',
'javax.inject.**.*',
'javax.json.**.*',
'org.glassfish.json.**.*'
]
}
}
My adb logcat:
System.err: Exception in Application start method
04-21 01:58:12.247 3694 3718 I System.out: QuantumRenderer: shutdown
04-21 01:58:12.254 3694 3714 W System.err: java.lang.reflect.InvocationTargetException
04-21 01:58:12.255 3694 3714 W System.err: at java.lang.reflect.Method.invoke(Native Method)
04-21 01:58:12.256 3694 3714 W System.err: at javafxports.android.DalvikLauncher$1.run(DalvikLauncher.java:188)
04-21 01:58:12.256 3694 3714 W System.err: at java.lang.Thread.run(Thread.java:761)
04-21 01:58:12.257 3694 3714 W System.err: Caused by: java.lang.RuntimeException: Exception in Application start method
04-21 01:58:12.257 3694 3714 W System.err: at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
04-21 01:58:12.257 3694 3714 W System.err: at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$138(LauncherImpl.java:182)
04-21 01:58:12.257 3694 3714 W System.err: at com.sun.javafx.application.LauncherImpl.access$lambda$1(LauncherImpl.java)
04-21 01:58:12.257 3694 3714 W System.err: at com.sun.javafx.application.LauncherImpl$$Lambda$2.run(Unknown Source)
04-21 01:58:12.258 3694 3714 W System.err: ... 1 more
04-21 01:58:12.270 3694 3714 W System.err: Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/LocalDate;
04-21 01:58:12.271 3694 3714 W System.err: at javafx.scene.AccessibleAttribute.<clinit>(AccessibleAttribute.java:217)
04-21 01:58:12.271 3694 3714 W System.err: at javafx.scene.Node$1.invalidated(Node.java:773)
04-21 01:58:12.271 3694 3714 W System.err: at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:111)
04-21 01:58:12.272 3694 3714 W System.err: at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
04-21 01:58:12.272 3694 3714 W System.err: at javafx.scene.Node.setParent(Node.java:720)
04-21 01:58:12.272 3694 3714 W System.err: at javafx.scene.Parent$1.onChanged(Parent.java:268)
04-21 01:58:12.273 3694 3714 W System.err: at com.sun.javafx.collections.TrackableObservableList.lambda$new$17(TrackableObservableList.java:44)
04-21 01:58:12.273 3694 3714 W System.err: at com.sun.javafx.collections.TrackableObservableList.access$lambda$0(TrackableObservableList.java)
04-21 01:58:12.273 3694 3714 W System.err: at com.sun.javafx.collections.TrackableObservableList$$Lambda$1.onChanged(Unknown Source)
04-21 01:58:12.279 3694 3714 W System.err: at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:328)
04-21 01:58:12.280 3694 3714 W System.err: at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:72)
04-21 01:58:12.280 3694 3714 W System.err: at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:232)
04-21 01:58:12.280 3694 3714 W System.err: at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
04-21 01:58:12.280 3694 3714 W System.err: at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
04-21 01:58:12.280 3694 3714 W System.err: at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:204)
04-21 01:58:12.281 3694 3714 W System.err: at javafx.collections.ModifiableObservableListBase.addAll(ModifiableObservableListBase.java:102)
04-21 01:58:12.281 3694 3714 W System.err: at com.sun.javafx.collections.VetoableListDecorator.addAll(VetoableListDecorator.java:237)
04-21 01:58:12.281 3694 3714 W System.err: at com.sun.javafx.collections.VetoableListDecorator.addAll(VetoableListDecorator.java:103)
04-21 01:58:12.282 3694 3714 W System.err: at com.gluonhq.charm.glisten.application.GlassPane.a(SourceFile:145)
04-21 01:58:12.282 3694 3714 W System.err: at com.gluonhq.charm.glisten.application.MobileApplication.a(SourceFile:229)
04-21 01:58:12.282 3694 3714 W System.err: at com.gluonhq.charm.glisten.application.MobileApplication.start(SourceFile:224)
04-21 01:58:12.282 3694 3714 W System.err: at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$145(LauncherImpl.java:863)
04-21 01:58:12.282 3694 3714 W System.err: at com.sun.javafx.application.LauncherImpl.access$lambda$8(LauncherImpl.java)
04-21 01:58:12.283 3694 3714 W System.err: at com.sun.javafx.application.LauncherImpl$$Lambda$9.run(Unknown Source)
04-21 01:58:12.283 3694 3714 W System.err: at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$158(PlatformImpl.java:326)
04-21 01:58:12.283 3694 3714 W System.err: at com.sun.javafx.application.PlatformImpl.access$lambda$6(PlatformImpl.java)
04-21 01:58:12.283 3694 3714 W System.err: at com.sun.javafx.application.PlatformImpl$$Lambda$7.run(Unknown Source)
04-21 01:58:12.283 3694 3714 W System.err: at com.sun.javafx.application.PlatformImpl.lambda$null$156(PlatformImpl.java:295)
04-21 01:58:12.284 3694 3714 W System.err: at com.sun.javafx.application.PlatformImpl.access$lambda$18(PlatformImpl.java)
04-21 01:58:12.284 3694 3714 W System.err: at com.sun.javafx.application.PlatformImpl$$Lambda$19.run(Unknown Source)
04-21 01:58:12.285 3694 3714 W System.err: at java.security.AccessController.doPrivileged(AccessController.java:57)
04-21 01:58:12.285 3694 3714 W System.err: at com.sun.javafx.application.PlatformImpl.lambda$runLater$157(PlatformImpl.java:294)
04-21 01:58:12.285 3694 3714 W System.err: at com.sun.javafx.application.PlatformImpl.access$lambda$5(PlatformImpl.java)
04-21 01:58:12.286 3694 3714 W System.err: at com.sun.javafx.application.PlatformImpl$$Lambda$6.run(Unknown Source)
04-21 01:58:12.286 3694 3714 W System.err: at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:93)
04-21 01:58:12.286 3694 3714 W System.err: at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:52)
04-21 01:58:12.286 3694 3714 W System.err: ... 1 more
04-21 01:58:12.289 3694 3714 W System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "java.time.LocalDate" on path: DexPathList[[zip file "/data/app/com.gluonapplication-2/base.apk"],nativeLibraryDirectories=[/data/app/com.gluonapplication-2/lib/arm, /data/app/com.gluonapplication-2/base.apk!/lib/armeabi, /system/lib, /vendor/lib]]
04-21 01:58:12.290 3694 3714 W System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
04-21 01:58:12.290 3694 3714 W System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
04-21 01:58:12.290 3694 3714 W System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
04-21 01:58:12.291 3694 3714 W System.err: ... 37 more
I even tried putting a new default project's apk and putting it into an emulator however, it still received the same error with the black screen

Erlang error exception exit in ZeroMQ example

i run hwclient:main(). or hwserver:main().
from zeromq example for erlang
https://github.com/zeromq/ezmq/blob/master/examples
from link
http://zeromq.org/bindings:erlang
and have error "exception exit"
crasher:
initial call: ezmq:init/1 pid: <0.42.0> registered_name: []
exception exit: {noproc,
{gen_server,call,
[ezmq_link_sup,{start_child,[]},infinity]}}
in function gen_server:terminate/6 (gen_server.erl, line 746)
ancestors: [<0.31.0>] messages: [] links: [] dictionary: [] trap_exit: true status: running heap_size: 376 stack_size: 27 reductions: 174
neighbours:
** exception exit: {{noproc,
{gen_server,call,
[ezmq_link_sup,{start_child,[]},infinity]}},
{gen_server,call,
[<0.42.0>,{connect,tcp,{127,0,0,1},5555,[]}]}}
in function gen_server:call/2 (gen_server.erl, line 182)
in call from hwclient:main/0 (/examples/hwclient.erl, line 15)
what's wrong?

Using MvxGridView in MvvmCross

What I want to do is s simple screen showing multiple items in a Grid. This can on android easily be archived using a GridView.
In MvvmCross I guess I have to use MvxGridView to archive the same.
Here is my axml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Mvx.MvxGridView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
local:MvxBind="ItemsSource Items"
local:MvxItemTemplate="#layout/itemview" />
</LinearLayout>
The itemview:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:minWidth="25px"
android:minHeight="25px">
<TextView
android:text="Text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="#+id/textView1"
local:MvxBind="Text Name" />
</LinearLayout>
My ViewModel:
using System.Collections.ObjectModel;
using Cirrious.MvvmCross.ViewModels;
namespace GridViewBug.Core.ViewModels
{
public class FirstViewModel
: MvxViewModel
{
public FirstViewModel()
{
Items = new ObservableCollection<TestClass>();
Items.Add(new TestClass { Name = "Test1" });
Items.Add(new TestClass { Name = "Test2" });
}
private string _hello = "Hello MvvmCross";
public string Hello
{
get { return _hello; }
set { _hello = value; RaisePropertyChanged(() => Hello); }
}
public ObservableCollection<TestClass> Items { get; set; }
}
public class TestClass
{
public string Name { get; set; }
}
}
And here what happens when I run this example:
05-03 16:18:32.799 I/MvxBind ( 7960): 0.84 Problem seen during binding execution for from Items to ItemsSource - problem TargetInvocationException: Exception has been thrown by the target of an invocation.
05-03 16:18:32.799 I/MvxBind ( 7960): at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): at System.Reflection.MonoProperty.SetValue (System.Object obj, System.Object value, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): at System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object value, System.Object[] index) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): at Cirrious.MvvmCross.Binding.Bindings.Target.MvxPropertyInfoTargetBinding.SetValue (System.Object value) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): at Cirrious.MvvmCross.Binding.Bindings.MvxFullBinding.UpdateTargetFromSource (Boolean isAvailable, System.Object value) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): InnerException was UnsupportedOperationException: Exception of type 'Java.Lang.UnsupportedOperationException' was thrown.
05-03 16:18:32.799 I/MvxBind ( 7960): at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (IntPtr jobject, IntPtr jclass, IntPtr jmethod) [0x00023] in /Users/builder/data/lanes/monodroid-lion-bs1/03814ac5/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:604
05-03 16:18:32.799 I/MvxBind ( 7960): at Android.Views.ViewGroup.RemoveAllViews () [0x00053] in /Users/builder/data/lanes/monodroid-lion-bs1/03814ac5/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Android.Views.ViewGroup.cs:2582
05-03 16:18:32.799 I/MvxBind ( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxViewGroupExtensions.Refill (Android.Views.ViewGroup viewGroup, IAdapter adapter) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxViewGroupExtensions.UpdateDataSetFromChange[MvxGridView] (Cirrious.MvvmCross.Binding.Droid.Views.MvxGridView viewGroup, System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs eventArgs) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxGridView.AdapterOnDataSetChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs eventArgs) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): at (wrapper delegate-invoke) <Module>:invoke_void__this___object_NotifyCollectionChangedEventArgs (object,System.Collections.Specialized.NotifyCollectionChangedEventArgs)
05-03 16:18:32.799 I/MvxBind ( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxAdapterWithChangedEvent.NotifyDataSetChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxAdapterWithChangedEvent.NotifyDataSetChanged () [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxAdapter.SetItemsSource (IEnumerable value) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxAdapter.set_ItemsSource (IEnumerable value) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxGridView.set_ItemsSource (IEnumerable value) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
05-03 16:18:32.799 I/MvxBind ( 7960): at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/MvxBind ( 7960): --- End of managed exception stack trace ---
05-03 16:18:32.799 I/MvxBind ( 7960): java.lang.UnsupportedOperationException: removeAllViews() is not supported in AdapterView
05-03 16:18:32.799 I/MvxBind ( 7960): at android.widget.AdapterView.removeAllViews(AdapterView.java:521)
05-03 16:18:32.799 I/MvxBind ( 7960): at cirrious.mvvmcross.binding.droid.binders.MvxBindingLayoutInflatorFactory.n_onCreateView(Native Method)
05-03 16:18:32.799 I/MvxBind ( 7960): at cirrious.mvvmcross.binding.droid.binders.MvxBindingLayoutInflatorFactory.onCreateView(MvxBindingLayoutInflatorFactory.java:29)
05-03 16:18:32.799 I/MvxBind ( 7960): at android.view.LayoutInflater.createViewFromTag(Layo
05-03 16:18:32.799 I/mono-stdout( 7960): MvxBind:Error: 0.84 Problem seen during binding execution for from Items to ItemsSource - problem TargetInvocationException: Exception has been thrown by the target of an invocation.
05-03 16:18:32.799 I/mono-stdout( 7960): at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/mono-stdout( 7960): at System.Reflection.MonoProperty.SetValue (System.Object obj, System.Object value, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/mono-stdout( 7960): at System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object value, System.Object[] index) [0x00000] in <filename unknown>:0
05-03 16:18:32.799 I/mono-stdout( 7960): at Cirrious.MvvmCross.Binding.Bindings.Target.MvxPropertyInfoTargetBinding.SetValue (System.Object value) [0x00000] in <filename unknown>:0
05-03 16:18:32.809 I/mono-stdout( 7960): at Cirrious.MvvmCross.Binding.Bindings.MvxFullBinding.UpdateTargetFromSource (Boolean isAvailable, System.Object value) [0x00000] in <filename unknown>:0
05-03 16:18:32.809 I/mono-stdout( 7960): InnerException was UnsupportedOperationException: Exception of type 'Java.Lang.UnsupportedOperationException' was thrown.
05-03 16:18:32.809 I/mono-stdout( 7960): at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (IntPtr jobject, IntPtr jclass, IntPtr jmethod) [0x00023] in /Users/builder/data/lanes/monodroid-lion-bs1/03814ac5/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:604
05-03 16:18:32.809 I/mono-stdout( 7960): at Android.Views.ViewGroup.RemoveAllViews () [0x00053] in /Users/builder/data/lanes/monodroid-lion-bs1/03814ac5/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Android.Views.ViewGroup.cs:2582
05-03 16:18:32.809 I/mono-stdout( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxViewGroupExtensions.Refill (Android.Views.ViewGroup viewGroup, IAdapter adapter) [0x00000] in <filename unknown>:0
05-03 16:18:32.809 I/mono-stdout( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxViewGroupExtensions.UpdateDataSetFromChange[MvxGridView] (Cirrious.MvvmCross.Binding.Droid.Views.MvxGridView viewGroup, System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs eventArgs) [0x00000] in <filename unknown>:0
05-03 16:18:32.809 I/mono-stdout( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxGridView.AdapterOnDataSetChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs eventArgs) [0x00000] in <filename unknown>:0
05-03 16:18:32.809 I/mono-stdout( 7960): at (wrapper delegate-invoke) <Module>:invoke_void__this___object_NotifyCollectionChangedEventArgs (object,System.Collections.Specialized.NotifyCollectionChangedEventArgs)
05-03 16:18:32.809 I/mono-stdout( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxAdapterWithChangedEvent.NotifyDataSetChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00000] in <filename unknown>:0
05-03 16:18:32.809 I/mono-stdout( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxAdapterWithChangedEvent.NotifyDataSetChanged () [0x00000] in <filename unknown>:0
05-03 16:18:32.809 I/mono-stdout( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxAdapter.SetItemsSource (IEnumerable value) [0x00000] in <filename unknown>:0
05-03 16:18:32.809 I/mono-stdout( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxAdapter.set_ItemsSource (IEnumerable value) [0x00000] in <filename unknown>:0
05-03 16:18:32.809 I/mono-stdout( 7960): at Cirrious.MvvmCross.Binding.Droid.Views.MvxGridView.set_ItemsSource (IEnumerable value) [0x00000] in <filename unknown>:0
05-03 16:18:32.809 I/mono-stdout( 7960): at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
05-03 16:18:32.809 I/mono-stdout( 7960): at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
05-03 16:18:32.809 I/mono-stdout( 7960): --- End of managed exception stack trace ---
05-03 16:18:32.809 I/mono-stdout( 7960): java.lang.UnsupportedOperationException: removeAllViews() is not supported in AdapterView
05-03 16:18:32.809 I/mono-stdout( 7960): at android.widget.AdapterView.removeAllViews(AdapterView.java:521)
05-03 16:18:32.809 I/mono-stdout( 7960): at cirrious.mvvmcross.binding.droid.binders.MvxBindingLayoutInflatorFactory.n_onCreateView(Native Method)
05-03 16:18:32.809 I/mono-stdout( 7960): at cirrious.mvvmcross.binding.droid.binders.MvxBindingLayoutInflatorFactory.onCreateView(MvxBindingLayoutInflatorFactory.java:29)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:669)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
05-03 16:18:32.809 I/mono-stdout( 7960): at gridviewbug.droid.views.FirstView.n_onCreate(Native Method)
05-03 16:18:32.809 I/mono-stdout( 7960): at gridviewbug.droid.views.FirstView.onCreate(FirstView.java:28)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.app.Activity.performCreate(Activity.java:4465)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.app.ActivityThread.access$600(ActivityThread.java:123)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.os.Handler.dispatchMessage(Handler.java:99)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.os.Looper.loop(Looper.java:137)
05-03 16:18:32.809 I/mono-stdout( 7960): at android.app.ActivityThread.main(ActivityThread.java:4424)
05-03 16:18:32.809 I/mono-stdout( 7960): at java.lang.reflect.Method.invokeNative(Native Method)
05-03 16:18:32.809 I/mono-stdout( 7960): at java.lang.reflect.Method.invoke(Method.java:511)
05-03 16:18:32.809 I/mono-stdout( 7960): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
05-03 16:18:32.809 I/mono-stdout( 7960): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
05-03 16:18:32.809 I/mono-stdout( 7960): at dalvik.system.NativeStart.main(Native Method)
What I'm doing wrong?
I'm using the latest stuff I can get from Nuget. Running on Mono Android 4.6.4 in VS2012
Here is the repo with the complete code:
https://github.com/sschoeb/MvvmCrossGridViewProblem
From the tracem it looks like a straight-forward bug, probably a regression that occured somewhere while fixing another issue.
Your best bet would be to open an issue for this on GitHub - https://github.com/slodge/MvvmCross/issues/new? Or you could fork the source and fix it in your branch.
In the meantime, maybe try using the MvxListView? Or create a new bindable ViewGroup?

Resources