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

"java.exe" exited with code 1 when Binding Parse Java SDK to Xamarin.Android

$
0
0

Hello Guys,

I'm trying to bind the the Parse Android Java SDK to Xamarin.Android

I've followed this tutorial http://docs.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)

I've added Parse_1.3.4.jar as an EmbeddedJar and android-support-v4.jar and Facebook_Android_SDK_v3.5.jar, as EmbeddedReferenceJar

I am using Visual Studio 2012, and when building the project I get 1 error ("java.exe" exited with code 1 ) and 12 warnings. The output is as follows:

1>------ Build started: Project: CompanyII.Blink.Mobile.Android.JLibrary, Configuration: Debug Any CPU ------
1>Build started 31/08/2013 17:22:14.
1>ResolveLibraryProjects:
1>Skipping target "ResolveLibraryProjects" because it has no inputs.
1>_ResolveMonoAndroidSdks:
1>  MonoAndroid Tools: C:\Program Files (x86)\MSBuild\Xamarin\Android\
1>  MonoAndroid Framework: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v4.2\;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\
1>  Android SDK: C:\Users\Account\Android_Dev\sdk\
1>  Java SDK: C:\Program Files\Java\jdk1.7.0_25\
1>  Android Platform API level: 17
1>  TargetFrameworkVersion: v4.2
1>ExportJarToXml:
1>    Assemblies: 
1>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v4.2\Mono.Android.dll
1>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll
1>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll
1>    Jars: 
1>    ResolvedResourceDirectories: 
1>    SourceJars:
1>      Jars\Parse-1.3.4.jar
1>    ReferenceJars:
1>      Jars\Facebook_Android_SDK_v3.5.jar
1>      Jars\android-support-v4.jar
1>  C:\Program Files\Java\jdk1.7.0_25\bin\java.exe -jar "C:\Program Files (x86)\MSBuild\Xamarin\Android\jar2xml.jar" --jar=C:\Users\Account\CompanyII\Blink\CompanyII.Blink.Mobile\CompanyII.Blink.Mobile.Android.JLibrary\Jars\Parse-1.3.4.jar --ref=C:\Users\Account\Android_Dev\sdk\platforms\android-17\android.jar --out=C:\Users\Account\CompanyII\Blink\CompanyII.Blink.Mobile\CompanyII.Blink.Mobile.Android.JLibrary\obj\Debug\api.xml --ref=C:\Users\Account\CompanyII\Blink\CompanyII.Blink.Mobile\CompanyII.Blink.Mobile.Android.JLibrary\Jars\Facebook_Android_SDK_v3.5.jar --ref=C:\Users\Account\CompanyII\Blink\CompanyII.Blink.Mobile\CompanyII.Blink.Mobile.Android.JLibrary\Jars\android-support-v4.jar 
1>  Exception in thread "main" java.lang.InternalError: Enclosing method not found
1>      at java.lang.Class.getEnclosingMethod(Class.java:952)
1>      at sun.reflect.generics.scope.ClassScope.computeEnclosingScope(ClassScope.java:50)
1>      at sun.reflect.generics.scope.AbstractScope.getEnclosingScope(AbstractScope.java:74)
1>      at sun.reflect.generics.scope.AbstractScope.lookup(AbstractScope.java:90)
1>      at sun.reflect.generics.factory.CoreReflectionFactory.findTypeVariable(CoreReflectionFactory.java:110)
1>      at sun.reflect.generics.visitor.Reifier.visitTypeVariableSignature(Reifier.java:165)
1>      at sun.reflect.generics.tree.TypeVariableSignature.accept(TypeVariableSignature.java:43)
1>      at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68)
1>      at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138)
1>      at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
1>      at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68)
1>      at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138)
1>      at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
1>      at sun.reflect.generics.repository.ClassRepository.getSuperInterfaces(ClassRepository.java:100)
1>      at java.lang.Class.getGenericInterfaces(Class.java:814)
1>      at jar2xml.JavaClass.getGenericInterfaces(JavaClass.java:212)
1>      at jar2xml.JavaClass.doAppendToDocument(JavaClass.java:593)
1>      at jar2xml.JavaClass.appendToDocument(JavaClass.java:544)
1>      at jar2xml.JavaPackage.appendToDocument(JavaPackage.java:72)
1>      at jar2xml.Start.main(Start.java:119)
1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(245,5): error MSB6006: "java.exe" exited with code 1.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.17
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Viewing all articles
Browse latest Browse all 204402

Trending Articles



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