Bug 40852 - NoSuchMethodError when using NestedScrollView.StartNestedScroll
Summary: NoSuchMethodError when using NestedScrollView.StartNestedScroll
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2016-05-04 09:04 UTC by Chama
Modified: 2016-08-16 10:59 UTC (History)
1 user (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 NOT_REPRODUCIBLE

Description Chama 2016-05-04 09:04:54 UTC
NoSuchMethodError exception occurs when an app is running on Samsung Galaxy Tab 4 7"
when I call nestedScrollView.StartNestedScroll(ScrollAxis.Vertical);

Stack trace:

05-04 10:57:56.160 14621-14621/com.seloger.dcube I/mono-stdout: java.lang.NoSuchMethodError: no method with name='startNestedScroll' signature='(I)Z' in class Landroid/view/View;
05-04 10:57:56.160 14621-14621/com.seloger.dcube I/mono-stdout:     at mono.com.google.android.gms.maps.GoogleMap_OnMarkerClickListenerImplementor.n_onMarkerClick(Native Method)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at mono.com.google.android.gms.maps.GoogleMap_OnMarkerClickListenerImplementor.onMarkerClick(GoogleMap_OnMarkerClickListenerImplementor.java:29)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at com.google.android.gms.maps.GoogleMap$15.zzd(Unknown Source)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at com.google.android.gms.maps.internal.zzp$zza.onTransact(Unknown Source)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at android.os.Binder.transact(Binder.java:361)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at com.google.android.gms.maps.internal.w$a$a.a(:com.google.android.gms.alldynamite:84)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at maps.ei.t.b(Unknown Source)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at maps.dg.c.a(Unknown Source)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at maps.dz.w.a(Unknown Source)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at maps.dz.ae.a(Unknown Source)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at maps.dz.ad.a(Unknown Source)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at maps.dz.an.d(Unknown Source)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at maps.dz.q.onSingleTapConfirmed(Unknown Source)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at maps.dc.f.onSingleTapConfirmed(Unknown Source)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at maps.dc.g$a.handleMessage(Unknown Source)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at android.os.Handler.dispatchMessage(Handler.java:102)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at android.os.Looper.loop(Looper.java:146)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at android.app.ActivityThread.main(ActivityThread.java:5602)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at java.lang.reflect.Method.invokeNative(Native Method)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at java.lang.reflect.Method.invoke(Method.java:515)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
05-04 10:57:56.170 14621-14621/com.seloger.dcube I/mono-stdout:     at dalvik.system.NativeStart.main(Native Method)
Comment 1 Atsushi Eno 2016-08-16 10:59:25 UTC
It is not reproducible. Here is my actual code that does test use of NestedScrollView.StartNestedScroll():

using Android.App;
using Android.Widget;
using Android.OS;
using Android.Support.V4.Widget;

namespace NestedScrollViewApp
{
	[Activity (Label = "NestedScrollView", MainLauncher = true, Icon = "@mipmap/icon")]
	public class MainActivity : Activity
	{
		int count = 1;

		protected override void OnCreate (Bundle savedInstanceState)
		{
			base.OnCreate (savedInstanceState);

			// Set our view from the "main" layout resource
			SetContentView (Resource.Layout.Main);

			// Get our button from the layout resource,
			// and attach an event to it
			Button button = FindViewById<Button> (Resource.Id.myButton);

			button.Click += delegate {
				button.Text = $"{count++} clicks!";
				new NestedScrollView (this, null, 0).StartNestedScroll (Android.Views.ScrollAxis.Vertical);
			};
		}
	}
}