Completed
Last Updated: 19 Sep 2019 14:24 by ADMIN
Anna
Created on: 07 Jun 2019 09:04
Category: SlideView
Type: Bug Report
1
System.NotSupportedException on SlideView after update Xamarin Forms to 4.0

Hi!

We are using your component SlideView on Main Page of our app. Unfortunately when we upgraded Xamarin Forms to 4.0 version we are facing exception - System.NotSupportedException: Unable to activate instance of type Telerik.XamarinForms.PrimitivesRenderer.Android.SlideViewRenderer from native handle 0x75 (key_handle 0x60775bd). ---> System.MissingMethodException: No constructor found for Telerik.XamarinForms.PrimitivesRenderer.Android.SlideViewRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.

 

Steps to reproduce:

1) Open app with SlideView and BottomNavigationBar

2) Navigate to any another tab

3) Back to main page tab

4) App is crashing with this exception.

 

It could be important information to reproduce this but it doesn't happend on every tab. We have five tabs in app (Main Page and 4 additional) and it crashes only on navigation between main page and last tab.

I guess that could happend when SlideView disposes or reloads.

14 comments
ADMIN
Lance | Manager Technical Support
Posted on: 19 Sep 2019 14:24

Hi,

This has been resolved. For more information, visit https://feedback.telerik.com/xamarin/1415762-slideview-android-notsupportedexception-is-thrown-during-page-navigation-with-xamarin-forms-4-0 

Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
ADMIN
Lance | Manager Technical Support
Posted on: 27 Jun 2019 15:01
Hi Anna,

I completely understand. However, a small repro with the high level components should be enough to isolate the issue. For example, is it a TabbedPage but you have custom appearance for the tab bar, then the customization isn't relevant. Alternatively, if the TabbedPage's children is a NavigationPage with custom navigation logic, then it's directly relevant.

As you've stated, it's likely that you're having the same issue that Michael is experiencing and the same fix will also work for you. You can know for sure by applying the workaround and not reuse the page instance in the navigation logic.


As far as release time frame goes, I cannot promise a precise window. We do have a faster release cadence with UI for Xamarin than other products and release a new version approximately every 4 to 6 weeks. That being said, I also cannot promise the fix will be in that release, you will know immediately by following the feedback item Ivan created (it will send you a notification when the status changes).

In some cases, we can provide an internal build for you to test with (internal builds are not rated for release). Then, when the next official release is available, you can easily swap out the internal build for the release.

If you'd like to get access to an internal build with the fix for this, please open a new Support Ticket to request it an internal build when the fix is integrated (we can't share it in a public thread like this). You can point to the public feedback item in the new ticket (with this link) so that they know precisely which fix you're looking for.

Thank you for your patience and understanding.

Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Anna
Posted on: 27 Jun 2019 08:41

Thank you for your reply. 

To be honest, our project is huge, we have custom tab bar implementation, so extracting this to sample project will be huge load of work. 

Both stacktrace and scenario of our case looks similar to Michael issue.

I'm glad that you are started working on fix. When we can expect next release?

ADMIN
Lance | Manager Technical Support
Posted on: 26 Jun 2019 13:27
Hello Anna,

The problem that causes this exception is when the same instance of the ContentPage is pushed into the navigation stack. The temporary workaround you can use to avoid the exception is to make sure that a new instance of the page is used.

Without your code, I'm unable to give you an exact approach or call out where the same instance is being reused. The way you worded your initial report seems to hint that you intended to attach a reproducible project, however it was not attached.

If you can share the test project with me, I'll be able to investigate directly and offer a workaround. If you're not able to attach a project, you could instead send a OneDrive/DropBox/Google Drive link that I can use to download it.

I look forward to your reply.

Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Anna
Posted on: 26 Jun 2019 13:18

Hi,

We have bought licence and upgrade Telerik to the newest version (2019.2.619.1) but it didn't helped. I'm facing the same issue which I described in previous comment with the exception - System.NotSupportedException: Unable to activate instance of type Telerik.XamarinForms.PrimitivesRenderer.Android.SlideViewRenderer from native handle 0x61 (key_handle 0x94b98c). ---> System.MissingMethodException: No constructor found for Telerik.XamarinForms.PrimitivesRenderer.Android.SlideViewRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership).

Could I do something with this? It will be great if I could upgrade my NuGets to the newest version.

Thanks in advance

ADMIN
Ivan
Posted on: 25 Jun 2019 13:08
Hello Michael,

Thank you for the detailed information and the sample project. I have reproduced the bug locally and logged a feedback item for it on your behalf. You can track the status of the bug from the following location: SlideView: [Android] NotSupportedException is thrown during page navigation with Xamarin.Forms 4.0. As a temporary workaround, you can create a new instance of the page upon navigation, rather than caching the existing one in memory.

Please, excuse us for the inconvenience. I have updated your Telerik points as a token of our gratitude.

Regards,
Ivan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
ADMIN
Lance | Manager Technical Support
Posted on: 24 Jun 2019 14:22
Hi Michael,

Thank you for the additional information about reusing the same instance in the navigation stack. I was able to reproduce the exception:

System.NotSupportedException: Unable to activate instance of type Telerik.XamarinForms.PrimitivesRenderer.Android.SlideViewRenderer from native handle 0x65 (key_handle 0xe9a2f9).

I've contacted the developers to investigate further. Thank you for your patience and understanding.

Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Michael
Posted on: 24 Jun 2019 10:57

Hi Lance,

 

I have updated to the latest release (v 2019.2.619) but still encounter the same issue. After spending some hours and stripping down my project I stumbled upon to the cause of that one. I try to keep the instances of my pages to reuse them and keep any data. In case that the user navigates a second time to the same page everything should have the same state like it had when he left before.

 

If you just amend some lines of code within your test project you can reproduce the issue. Within HomePage.xaml.cs just reuse the page like this.

 

public partial class HomePage : ContentPage
    {
    
        public HomePage()
        {
            InitializeComponent();
        }

        protected SlideViewTestPage _page = new SlideViewTestPage();

        private void Button_OnClicked(object sender, EventArgs e)
        {
            Navigation.PushAsync(_page);
        }

    }

 

The first time everything works fine, if you open the nav page the second time the app crashes. And before Xam4 this used to work.

 

Regards,

Michael

ADMIN
Lance | Manager Technical Support
Posted on: 20 Jun 2019 15:14
Hi Michael,

I have tested NavigationPage & SlideView with yesterday's R2 2019 SP1 release (v 2019.2.619) and do not observe any issues with the latest version of XF 4.

Run the attached demo and take the following steps:

1. Build and deploy the demo to Android
2. Click the Button on MainPage to navigate to a page with a SlideView
3. Navigate back to MainPage
4. Repeat steps 2 and 3 to further verify no exception occurs when creating or disposing the SlideView's renderer

If you still experience an exception after upgrading to 2019.2.619, please add your code to the demo project so that it replicates the exception. With this we can investigate further.

Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Attached Files:
ADMIN
Lance | Manager Technical Support
Posted on: 17 Jun 2019 16:21
Hello Michael,

You've stumbled on a different issue that is specific to NavigationPage. We are aware of this and working to have a fix in the upcoming minor release (R2 SP1, expected very shortly).

I'll forward this stacktrace to the development team so that they can test the fix against your specific scenario.

Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Michael
Posted on: 17 Jun 2019 14:25

Hi there,

 

after upgrading to Xamarin Forms 4 and Telerik libraries v.2019.2.603.1 I encounter exactly the same issue. Of course I have deleted all binaries and made a complete rebuild of the solution.

- Open a nav page with a slideview

- Move back

- Open nav page again... crash

That happens in the emulator as well as on the real mobile.

 

Complete stack trace

The thread 0x9a has exited with code 0 (0x0).
06-17 16:12:33.625 D/Mono    ( 5181): DllImport attempting to load: '/system/lib/liblog.so'.
06-17 16:12:33.625 D/Mono    ( 5181): DllImport loaded library '/system/lib/liblog.so'.
06-17 16:12:33.625 D/Mono    ( 5181): DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so').
06-17 16:12:33.625 D/Mono    ( 5181): Searching for '__android_log_print'.
06-17 16:12:33.625 D/Mono    ( 5181): Probing '__android_log_print'.
06-17 16:12:33.625 D/Mono    ( 5181): Found as '__android_log_print'.
06-17 16:12:33.629 I/MonoDroid( 5181): UNHANDLED EXCEPTION:
06-17 16:12:33.638 I/MonoDroid( 5181): System.NotSupportedException: Unable to activate instance of type Telerik.XamarinForms.PrimitivesRenderer.Android.SlideViewRenderer from native handle 0x100019 (key_handle 0x4c779eb). ---> System.MissingMethodException: No constructor found for Telerik.XamarinForms.PrimitivesRenderer.Android.SlideViewRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
06-17 16:12:33.638 I/MonoDroid( 5181):    --- End of inner exception stack trace ---
06-17 16:12:33.638 I/MonoDroid( 5181):   at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00055] in <3921e1c40bf740cab0f47696b3ad1282>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00116] in <3921e1c40bf740cab0f47696b3ad1282>:0
06-17 16:12:33.638 I/MonoDroid( 5181):    --- End of inner exception stack trace ---
06-17 16:12:33.638 I/MonoDroid( 5181):   at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00182] in <3921e1c40bf740cab0f47696b3ad1282>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Java.Lang.Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type) [0x000c1] in <3921e1c40bf740cab0f47696b3ad1282>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Java.Lang.Object._GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00017] in <3921e1c40bf740cab0f47696b3ad1282>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Java.Lang.Object.GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00000] in <3921e1c40bf740cab0f47696b3ad1282>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Android.Views.View.get_Parent () [0x0001f] in <3921e1c40bf740cab0f47696b3ad1282>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].UpdateParentPageTraversalOrder () [0x00009] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:401
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00116] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:369
06-17 16:12:33.638 I/MonoDroid( 5181):   at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:211
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:353
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Element.set_Parent (Xamarin.Forms.Element value) [0x00094] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:210
06-17 16:12:33.638 I/MonoDroid( 5181):   at Telerik.XamarinForms.Common.Android.RadViewContainer.DetachInnerView () [0x00041] in <a50d74fb451649a79b3dbce1aa4d04d3>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Telerik.XamarinForms.Common.Android.RadViewContainer.set_View (Xamarin.Forms.View value) [0x00009] in <a50d74fb451649a79b3dbce1aa4d04d3>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Telerik.XamarinForms.PrimitivesRenderer.Android.SlideViewRenderer.ContentManager_ViewRemoved (System.Object sender, Telerik.XamarinForms.Primitives.SlideView.NativeViewRemovedEventArgs args) [0x00027] in <3b7fbbf471b240edac6c7070c86ba704>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Telerik.XamarinForms.Primitives.SlideView.ContentManagerBase.OnNativeViewRemoved (System.Object nativeView) [0x00012] in <3b7fbbf471b240edac6c7070c86ba704>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Telerik.XamarinForms.Primitives.SlideView.ContentManagerBase.RecycleNativeView (System.Object nativeView) [0x00057] in <3b7fbbf471b240edac6c7070c86ba704>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Telerik.XamarinForms.Primitives.SlideView.ContentManagerBase.ResetNativeViews (System.Boolean forceRecreateViews) [0x00029] in <3b7fbbf471b240edac6c7070c86ba704>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Telerik.XamarinForms.Primitives.SlideView.ContentManagerBase.Initialize () [0x00007] in <3b7fbbf471b240edac6c7070c86ba704>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Telerik.XamarinForms.PrimitivesRenderer.Android.SlideViewRenderer.OnElementAttached (Telerik.XamarinForms.Primitives.RadSlideViewPresenter newElement) [0x00033] in <3b7fbbf471b240edac6c7070c86ba704>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Telerik.XamarinForms.Common.Android.AndroidRendererBase`2[S,T].OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs`1[TElement] e) [0x0003f] in <a50d74fb451649a79b3dbce1aa4d04d3>:0
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000c3] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:236
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:127
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context) [0x0001f] in D:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:341
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) [0x000af] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:138
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00139] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:334
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:110
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:441
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000e0] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:239
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:127
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context) [0x0001f] in D:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:341
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) [0x000af] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:138
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00139] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:334
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:110
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:441
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000e0] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:239
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:127
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context) [0x0001f] in D:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:341
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) [0x000af] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:138
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00139] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:334
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:110
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:441
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000e0] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:239
06-17 16:12:33.638 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:127
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context) [0x0001f] in D:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:341
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) [0x000af] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:138
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00139] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:334
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:110
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:441
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000e0] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:239
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:127
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context) [0x0001f] in D:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:341
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) [0x000af] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:138
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00139] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:334
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:110
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:441
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000e0] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:239
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:127
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context) [0x0001f] in D:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:341
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) [0x000af] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:138
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00139] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:334
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:110
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:441
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000e0] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:239
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:127
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Support.V4.App.FragmentManager fragmentManager, Android.Content.Context context) [0x00031] in D:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:388
06-17 16:12:33.639 I/MonoDroid( 5181):   at Xamarin.Forms.Platform.Android.AppCompat.FragmentContainer.OnCreateView (Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState) [0x00008] in D:\a\1\s\Xamarin.Forms.Platform.Android\AppCompat\FragmentContainer.cs:56
06-17 16:12:33.639 I/MonoDroid( 5181):   at Android.Support.V4.App.Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_inflater, System.IntPtr native_container, System.IntPtr native_savedInstanceState) [0x00020] in <21e4bb539f4a49b58a498749b367d2a8>:0
06-17 16:12:33.639 I/MonoDroid( 5181):   at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.40(intptr,intptr,intptr,intptr,intptr)
06-17 16:12:33.649 W/art     ( 5181): JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable
06-17 16:12:33.651 D/Mono    ( 5181): DllImport searching in: '__Internal' ('(null)').
06-17 16:12:33.651 D/Mono    ( 5181): Searching for 'java_interop_jnienv_throw'.
06-17 16:12:33.651 D/Mono    ( 5181): Probing 'java_interop_jnienv_throw'.
06-17 16:12:33.651 D/Mono    ( 5181): Found as 'java_interop_jnienv_throw'.

ADMIN
Lance | Manager Technical Support
Posted on: 10 Jun 2019 15:46
Hello Anna,

The Telerik NuGet server will only show you packages that your account has a license for. I've reviewed your account and found the reason you're not seeing the package in your NuGet feed.

It is because your account's DevCraft license expired on February 27th 2019. This means you are not able to use/see any product releases after the license has expired.

If you reach out to the admins who manage the company's Telerik license and ask them to call their account manager to renew the license, you'll be able to get all the releases available from that time of license renewal for one year.

Tip - I also recommend that you have them ask that they "backdate" your license to when the license expired. This will fill the gap between when the license expired and the day it gets renewed. This will let your account get any releases during that period.

I hope I was able to explain the issue, let me know if you have any additional questions.

Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Anna
Posted on: 09 Jun 2019 14:36

Thank you for your fast and precise response!

I have tried to update my Telerik UI for Xamarin to to the version you that you have meant but I can not. My NuGet Package Manager shows that the latest version that I can install is 2019.1.220.1 like in attachment.

It is something wrong with my Visual?

I'm using your official NuGet package server - https://nuget.telerik.com/nuget

Attached Files:
ADMIN
Lance | Manager Technical Support
Posted on: 07 Jun 2019 14:10
Hello Anna,

It looks like you meant to attach a test project, it didn't go through. However, this isn't needed because I believe I have a solution for you.

At the time 2019.1.220 was published, Xamarin.Forms 4 was not released yet. The version you're using, v.2019.1.220, is not compatible with Xamarin.Forms 4.0 due to some changes made by Microsoft in that major release (3.x to 4.x) which causes the exception you see. 

We have fixed this in a service pack that is available now, v.2019.2.603. Take the following steps:

1. Upgrade Telerik UI for Xamarin to v.2019.2.603
2. Clean and Rebuild all the projects to ensure they're compiled with the new references (I recommend deleting all the bin/obj folders to ensure this)
3. Redeploy and follow the the steps to reproduce

Let me know how it goes. If you still see the exception, please reply back with the test project and I'll investigate directly.

Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items