Closed ghost closed 5 months ago
Make sure that you are referencing android-14 (android 4.0) or use support jar - View.OnHoverListener is part of api 14 - see http://developer.android.com/reference/android/view/View.OnHoverListener.html
I got to the next step but there the jar2xml throw an exception:
Tool /usr/bin/java execution started with arguments: -jar /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/jar2xml.jar --jar=/Users/lucian/workspace/TestAndroidBinding/BindSPen/BindSPen/libs/libspen23.jar --ref=/Users/lucian/Library/Developer/Xamarin/android-sdk-mac_x86/platforms/android-14/android.jar --out=/Users/lucian/workspace/TestAndroidBinding/BindSPen/BindSPen/obj/Debug/api.xml Exception in thread "main" java.lang.reflect.GenericSignatureFormatError at sun.reflect.generics.parser.SignatureParser.error(SignatureParser.java:103) at sun.reflect.generics.parser.SignatureParser.parseSimpleClassTypeSignature(SignatureParser.java:262)
You may want to use spen2.2 or wrap spen2.3 with java code and bind only that code.
I pulled the sample to create a monodroid-binding for the Samsung SPen SDK, but it doesn't work with the SDK 2.3.
Attached you'll find a snippet of the error messages. Anything I don't see here? I added the libspen23.jar in "Jars" as 'inputjar'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Bindings.targets: Error: Tool exited with code: 1. Output: java.lang.NoClassDefFoundError: android/view/View$OnHoverListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at jar2xml.JavaArchive.getPackages(JavaArchive.java:86) at jar2xml.JavaArchive.getPackages(JavaArchive.java:64) at jar2xml.Start.main(Start.java:118) Caused by: java.lang.ClassNotFoundException: android.view.View$OnHoverListener at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 14 more