Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Android crashes with ActivityIndicator while starting

$
0
0

Hi,

on our project (and a blank test project for reproduction) the ActivityIndicator let Android Apps crash when they use minimum API Level 16 (4.1 Jelly Beans).
It's enough to put a ActivityIndicator on the blank forms project, target the API Level 16 and start.
You get the following exception:

Java.Lang.RuntimeException: java.lang.reflect.InvocationTargetException
at --- End of managed exception stack trace ---
at java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at at dalvik.system.NativeStart.main(Native Method)
at Caused by: java.lang.reflect.InvocationTargetException
at at java.lang.reflect.Method.invokeNative(Native Method)
at at java.lang.reflect.Method.invoke(Method.java:511)
at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at ... 2 more
at Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.MissingMethodException: Method 'ProgressBar.set_IndeterminateTintList' not found.
at at Xamarin.Forms.Platform.Android.ActivityIndicatorRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs

1<Xamarin.Forms.ActivityIndicator>) <IL 0x0002c, 0x0010f>
  at at Xamarin.Forms.Platform.Android.VisualElementRenderer
1<Xamarin.Forms.ActivityIndicator>.SetElement (Xamarin.Forms.ActivityIndicator) <0x006f5>
at at Xamarin.Forms.Platform.Android.VisualElementRenderer
1<Xamarin.Forms.ActivityIndicator>.Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement) <0x00127>
  at at Xamarin.Forms.Platform.Android.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement) <IL 0x00021, 0x000ca>
  at at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement,Xamarin.Forms.Platform.Android.IVisualElementRenderer,Xamarin.Forms.Platform.Android.RendererPool,bool) <IL 0x00024, 0x000f7>
  at at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement,Xamarin.Forms.VisualElement) <IL 0x00116, 0x00503>
  at at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () <IL 0x0000d, 0x00057>
  at at Xamarin.Forms.Platform.Android.VisualElementRenderer
1<Xamarin.Forms.View>.SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager) <0x0005b>
at at Xamarin.Forms.Platform.Android.VisualElementRenderer
1<Xamarin.Forms.View>.SetElement (Xamarin.Forms.View) <0x00793>
  at at Xamarin.Forms.Platform.Android.VisualElementRenderer
1<Xamarin.Forms.View>.Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement) <0x00127>
at at Xamarin.Forms.Platform.Android.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement)
at at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement,Xamarin.Forms.Platform.Android.IVisualElementRenderer,Xamarin.Forms.Platform.Android.RendererPool,bool)
at at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement,Xamarin.Forms.VisualElement)
at at Xamarin.Forms.Platform.Android.VisualElementPackager.Load ()
at at Xamarin.Forms.Platform.Android.VisualElementRenderer
1<Xamarin.Forms.Page>.SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager) <0x0005b>
  at at Xamarin.Forms.Platform.Android.VisualElementRenderer
1<Xamarin.Forms.Page>.SetElement (Xamarin.Forms.Page) <0x00793>
at at Xamarin.Forms.Platform.Android.VisualElementRenderer`1<Xamarin.Forms.Page>.Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement) <0x00127>
at at Xamarin.Forms.Platform.Android.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement)
at at Xamarin.Forms.Platform.Android.Platform.AddChild (Xamarin.Forms.VisualElement,bool)
at at Xamarin.Forms.Platform.Android.Platform.SetPage (Xamarin.Forms.Page)
at at Xamarin.Forms.Platform.Android.FormsApplicationActivity.InternalSetPage (Xamarin.Forms.Page)
at at Xamarin.Forms.Platform.Android.FormsApplicationActivity.SetMainPage ()
at at Xamarin.Forms.Platform.Android.FormsApplicationActivity.LoadApplication (Xamarin.Forms.Application)
at Test.Droid.MainActivity.OnCreate (Android.OS.Bundle) [0x00015] in /Users/espenhahn/Projects/Test/Droid/MainActivity.cs:22
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/2058/58099c53/source/monodroid/src/Mono.Android/platforms/android-16/src/generated/Android.App.Activity.cs:2374
at at (wrapper dynamic-method) object.2305b10e-b76e-4c13-8403-514aab877df2 (intptr,intptr,intptr)
at at md5774612d1059550a86887b889cb974a69.MainActivity.n_onCreate(Native Method)
at at md5774612d1059550a86887b889cb974a69.MainActivity.onCreate(MainActivity.java:28)
at at android.app.Activity.performCreate(Activity.java:5008)
at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
at at android.app.ActivityThread.access$600(ActivityThread.java:130)
at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
at at android.os.Handler.dispatchMessage(Handler.java:99)
at at android.os.Looper.loop(Looper.java:137)
at at android.app.ActivityThread.main(ActivityThread.java:4745)
at ... 5 more

@Xamarin.Forms Team:
Can you verify this problem?
With API Level 21 all works great but this is not a solution because many of our users have not such a modern device.

Best regards
René


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>