Bug 58910 - Hard crash on Android: no method called setElevation
Summary: Hard crash on Android: no method called setElevation
Status: RESOLVED DUPLICATE of bug 58868
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.4
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-08-20 13:15 UTC by Philipp Sumi
Modified: 2017-08-20 16:24 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

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:
Status:
RESOLVED DUPLICATE of bug 58868

Description Philipp Sumi 2017-08-20 13:15:26 UTC
Seeing those in HockeyApp after distribution:


java.lang.NoSuchMethodError: no method with name='setElevation' signature='(F)V' in class Lcom/xamarin/forms/platform/android/FormsViewGroup; 

caused.NoSuchMethodError(F)
md5270abb39e60627f0f200893b490a1ade.FragmentContainer.n_onCreateView(Native Method)
md5270abb39e60627f0f200893b490a1ade.FragmentContainer.onCreateView()FragmentContainer.java:51
android.support.v4.app.Fragment.performCreateView()Fragment.java:2192
android.support.v4.app.FragmentManagerImpl.moveToState()FragmentManager.java:1299
android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState()FragmentManager.java:1528
android.support.v4.app.FragmentManagerImpl.moveToState()FragmentManager.java:1595
android.support.v4.app.BackStackRecord.executeOps()BackStackRecord.java:758
android.support.v4.app.FragmentManagerImpl.executeOps()FragmentManager.java:2363
android.support.v4.app.FragmentManagerImpl.executeOpsTogether()FragmentManager.java:2149
android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps()FragmentManager.java:2103
android.support.v4.app.FragmentManagerImpl.execPendingActions()FragmentManager.java:2013
android.support.v4.app.FragmentManagerImpl$1.run()FragmentManager.java:710
android.os.Handler.handleCallback()Handler.java:808
android.os.Handler.dispatchMessage()Handler.java:103
android.os.Looper.loop()Looper.java:193
android.app.ActivityThread.main()ActivityThread.java:5315
java.lang.reflect.Method.invokeNative(Native Method)
java.lang.reflect.Method.invoke()Method.java:515
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run()ZygoteInit.java:825
com.android.internal.os.ZygoteInit.main()ZygoteInit.java:641
dalvik.system.NativeStart.main(Native Method)


Guessing this comes from a custom renderer of mine that sets the Elevation property on View. Crashing Android versions that were reported: 4.4.2 / 4.2.2
Comment 1 Paul DiPietro [MSFT] 2017-08-20 16:24:59 UTC

*** This bug has been marked as a duplicate of bug 58868 ***