Nativescript 5.1 Core JS TabView in a Sidedrawer page not working - navigation-drawer

I have created a nativescript application under NS core JS 4, i don't remember the
exact minor version, sorry.
Because of some great improvements I updated my app to V5.1 of NS core with JS.
Here my tns version...
√ Getting NativeScript components versions information...
√ Component nativescript has 5.1.0 version and is up to date.
√ Component tns-core-modules has 5.1.1 version and is up to date.
√ Component tns-android has 5.1.0 version and is up to date.
√ Component tns-ios has 5.1.0 version and is up to date.
After that, my app stopped working.
The App has a side drawer with a menu and every time i want to navigate from a
page with a TabView in it, the application crashes...
System.err: android.content.res.Resources$NotFoundException: Unable to find resource ID #0xffffffec
System.err: at android.content.res.Resources.getResourceTypeName(Resources.java:3271)
System.err: at android.support.v4.app.FragmentManagerImpl.loadAnimation(FragmentManager.java:1172)
System.err: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1543)
System.err: at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784)
System.err: at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:797)
System.err: at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2625)
System.err: at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2411)
System.err: at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366)
System.err: at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273)
System.err: at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:733)
System.err: at android.os.Handler.handleCallback(Handler.java:739)
System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
System.err: at android.os.Looper.loop(Looper.java:145)
System.err: at android.app.ActivityThread.main(ActivityThread.java:5951)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at java.lang.reflect.Method.invoke(Method.java:372)
System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
ActivityManager: Process org.nativescript.myappname (pid 4063)(adj 0) has died(67,647)
I don't have a playground to show the problem but it's reproducible...
Created a fresh app with the side drawer template.
tns create testapp --template tns-template-drawer-navigation
Start this app.
tns run android
Navigate around a bit and see the app is working. Let's say you navigate to "browse" in the side drawer. And then navigate to "home"...It works.
Edit the app and, to use our example from above, change "browse-page.xml".
Replace the GridLayout with...
<TabView>
<TabViewItem title="first tab">
<Label text="short test text on tab 1" />
</TabViewItem>
<TabViewItem title="second tab">
<Label text="short test text on tab 2" />
</TabViewItem>
</TabView>
Now try again. Navigate around in the App. Navigate to any menu entry you want.
But if you are in "browse" and try to navigate to another menu entry, the app
will crash with the above error message.
The TabView itself is working.
I tried to wrap the TabView in a StackLayout and a GridLayout...does not help.
Is somebody else having the same problem or can somebody help me to fix that
issue?
thanks in advance.
EDIT 1
I created a playground. Its a little stripped down and the problem does not
exist there.
https://play.nativescript.org/?template=play-js&id=tvDeOz
I also uploaded my testapp here..
https://drive.google.com/open?id=1fqMDDbjLdN6YK670c3qawUU_Xfect1xm
EDIT 2
So, i played around a bit...installed node, android sdk, java and ns completely new.
When I create an app as described above and run it in preview mode, everything is ok.
When I run the app on my android device or an emulator, the error described above is thrown.
My test phone is on Android 5.0.1. The emulator is v7.0.
So I'm a little bit clueless.
best regards
ingo

Related

Why is UWP crashing after adding CarouselView?

Can someone explain me why UWP is crashing after adding CarouselView to ContentPage. Am i missing some library (on UWP) for rendering or?
This is the error I'm getting:
Thanks in advance.

Xamarin Forms Xaml Android Preview error

At some point in development the Xaml previewer stopped working for my Xamarin forms app, the app runs fine it just slows down visual testing.
I'm not quite sure how to diagnose the issue as I'm not sure where it's coming from. Image attached so what I'm working with. Cleared the /bin /obj and other caches, installed latest updates.
The full error is,
System.TypeInitializationException was thrown. The type initializer
for 'Kwike.App' threw an exception.
at at offset 51 in file:line:column :0:0
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj,
System.Object[] parameters) in :0
iOS works fine. It could have something to do with a particular style or resource but I'm not sure. Is there a way to debug more info out of this. Also, this might sound silly but I'm not sure what Kwike.App is that is the name of the app but I cannot locate this file.
It's project specific as the previewer works on a new forms project.

System.objectdisposed exception occur when I press back button in xamarin forms

I am getting 'System.objectdisposed exception' when I navigate from one page to another page and with out loading that navigated page when I press back button getting 'System.objectdisposed exception' exception. I am getting this exception when I run xamarin android project, In xamarin ios is working fine. I didn't find what the root cause of this exception. Is any one have any idea about this, Please suggest.

Xamarin.Forms Android app crashes when debugging on Galazy S8 (Exynos)

I am trying to debug a Xamarin.Forms app which crashes with error
BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.Performance" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /vendor/lib64]]
on my Galaxy S8, however the app does not crash when running on an emulator or when ran on a One Plus 3t.
The crash occurs when clicking the menu button on a Master.Detail Page.
Any insights in to this would be appreciated as I cannot seem to find any information on this.

Xamarin Android | UI shows up blank in device

I'm developing android app for learning purpose. I've installed Xamarin 4.2.1.60 on my laptop.
I created a simple Layout and tried to run it on my One Plus 3 (Android M 6.0.1) and Moto G (Android L 5.1) 1st Gen
but the layout shows up empty in both of them.
It also gives me a below Exception on running:
Unhandled Exception: System.NullReferenceException: Object reference
not set to an instance of an object.
On pressing break, a window open in Visual Studio with Header saying Source Not Available
(Please see attached screenshots)
Please suggest how can I resolve this.
Designer Screen:
Device Screen:
Exception Window:
Make sure to set a default SetContentView() in your MainActivity.OnCreate() with a valid Android layout.

Resources