cancel
Showing results for 
Search instead for 
Did you mean: 

UltraLite JAR Binding Project Build in VS 2017 Vers 5.2

Former Member
0 Kudos
2,934

JAR Binding Project Settings: Target Framework: Nougat Android Class Parser: class-parse Android CodegenTarget: XamarinAndroid JAR Build Action: “InputJar” or “EmbeddedJar” (which is what I had read on Xamarin website).

When the “Build Action” is changed to one of these two the following compiler error is received... Error- CS0111 Type 'JniDbMgr' already defines a member called 'Release' with the same parameter types

Changed the JAR Build Action

New Binding Project Settings: Target Framework: Nougat
Android Class Parser: jar2xml Android CodegenTarget: XamarinAndroid JAR Build Action: “Embedded Reference Jar” or “Embedded Reference”

Gets a compile error saying that the “Build Action” must be “InputJar” or “EmbeddedJar”

Changed the Android Class Parser

New Binding Project Settings: Target Framework: Nougat Android Class Parser: class-parse Android CodegenTarget: XamarinAndroid JAR Build Action: “Embedded Reference Jar” or “Embedded Reference”

The Binding project now Compiles with this warning: “BINDINGSGENERATOR : warning BG8601: No packages found”

The Android Project (same Target Framework as Binding Project) fails to compile with multiple errors of CS0246 – The type or namespace name ‘Com’ could not be found. You can replace ‘Com’ in the error statement with others I am using like ISyncObserver. Yes, the Binding Project has been added to the Android Project’s “References”

Even though the Build fails with these errors, I can go into the code and type one of these “could not be found” types and intellisense finds them and shows me their available methods and members. As if they are found. Must be an issue with VS 2017.

The main issue here is the compile Error- CS0111 described at the beginning which I think is a JAR file issue.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member

This link was a start. Of course ianywhere gets replaced with sap. The big issue with this example is the damn spaces between "class [@name='".

For the SAP people monitoring this thread, do you not have any documentation on setting up a 2017 UltraLite Univeral/Android app? This is something that should definitely be there as it is not an aberration but is SOP. I could find nothing on your websites about setting up the dev environment.

Former Member
0 Kudos

FYI to anyone who lands here: You will need to add System.XML to the Binding Project's References List. This will get rid of several warnings in the BINDINGSGENERATOR File that appear to be important.