Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Problems with NumberPicker

$
0
0

Hi there,

I'm trying to use a NumberPicker in my app. I'm using the support library and everything works just fine until I try to set the minimum and maximum values. The device I'm testing on is running Android 2.3.3 and I'm compiling the app using the 4.0 version and my minimum target version is 2.2 (Target Android version is "Use Compile using SDK version").

The exception data looks like this which confuses me a bit because I've read that NumberPicker should be available with the v4 support library. It works just fine in an emulator running 4.0.4 but I'm getting the same error in an emulator running 2.3.3.

-      Instance    {Java.Lang.NoSuchMethodError}   Java.Lang.NoSuchMethodError
-       base    {Java.Lang.IncompatibleClassChangeError}    Java.Lang.IncompatibleClassChangeError
-       base    {Java.Lang.LinkageError}    Java.Lang.LinkageError
-       base    {Java.Lang.Error}   Java.Lang.Error
-       base    {Java.Lang.Throwable}   Java.Lang.Throwable
+       base    {System.Exception}  System.Exception
+       Cause   (null)  object
        Handle  0x40530418  System.IntPtr
        LocalizedMessage    "setValue"  string
        Message "setValue"  string
        StackTrace  "at Android.Runtime.JNIEnv.GetMethodID (intptr,string,string) [0x00024] in /Users/builder/data/lanes/…" string

Am I doing something wrong? I'm using Cheesebarons sample that can be found here https://github.com/Cheesebaron/MonoDroid.DialogSample

Any help or pointers are welcome! I've been struggling with this all day so it might be something glaringly obvious that I can't see.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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