Bug 58868 - App Crashes Immediately on API 19 and below
Summary: App Crashes Immediately on API 19 and below
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.4.0
Hardware: PC Windows
: High critical
Target Milestone: 2.4.0
Assignee: Rui Marinho
: 58910 ()
Depends on:
Reported: 2017-08-18 00:29 UTC by Jimmy [MSFT]
Modified: 2017-08-29 18:16 UTC (History)
8 users (show)

Tags: ac android crash NoSuchMethodError fr
Is this bug a regression?: Yes
Last known good build: 2.3.5-pre6

repro project (43.52 KB, application/x-zip-compressed)
2017-08-18 00:29 UTC, Jimmy [MSFT]

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jimmy [MSFT] 2017-08-18 00:29:31 UTC
Created attachment 24288 [details]
repro project

### Overview
Apps crash at launch on Android API 19 and below:

> Java.Lang.NoSuchMethodError: no method with name='getElevation' signature='()F' in class Lcom/xamarin/forms/platform/android/FormsViewGroup;
> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <183b200ee49746d48fc781625979428e>:0 
> at Java.Interop.JniEnvironment+InstanceMethods.GetMethodID (Java.Interop.JniObjectReference type, System.String name, System.String signature) [0x0005b] in <50812bf827614c0faffacac58772b4fa>:0 
> at Java.Interop.JniType.GetInstanceMethod (System.String name, System.String signature) [0x0000c] in <50812bf827614c0faffacac58772b4fa>:0 
> at Java.Interop.JniPeerMembers+JniInstanceMethods.GetMethodInfo (System.String encodedMember) [0x00031] in <50812bf827614c0faffacac58772b4fa>:0 
> at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualSingleMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00045] in <50812bf827614c0faffacac58772b4fa>:0 
> at Android.Views.View.get_Elevation () [0x0000a] in <71828dd8fb5f4508815e23d6996c45c2>:0 
> at Xamarin.Forms.Platform.Android.Platform+DefaultRenderer.GetChildDrawingOrder (System.Int32 childCount, System.Int32 i) [0x0001a] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\ListViewAdapter.cs:111 
> at Android.Views.ViewGroup.n_GetChildDrawingOrder_II (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 childCount, System.Int32 i) [0x00008] in <71828dd8fb5f4508815e23d6996c45c2>:0 
> at (wrapper dynamic-method) System.Object:ccd6f35f-c8df-471d-a4ff-29c0bee32847 (intptr,intptr,int,int)

### Platforms Affected

### Steps to Reproduce
1. Run the attached repro project on an Android API 19 or below device/emulator

### Expected Results
The app will launch.

### Actual Results
The app immediately crashes.

### Version Tests
2.4.0-pre1  BAD
2.3.5-pre6  GOOD   GOOD
Comment 2 Paul DiPietro [MSFT] 2017-08-20 16:24:59 UTC
*** Bug 58910 has been marked as a duplicate of this bug. ***
Comment 3 Seifer 2017-08-23 13:06:10 UTC
Any estimations on when fixed 2.4.0 version can be used?
Comment 4 Rui Marinho 2017-08-23 21:46:02 UTC
Should be fixed on 2.4.0-pre2
Comment 5 Seifer 2017-08-23 21:47:41 UTC
Rui, when 2.4.0-pre2 be available to test (approximately)?
Comment 6 Samantha Houts [MSFT] 2017-08-29 18:16:55 UTC
@Seifer: Right now! :)