generator.exe crashes when build Android Java Binding Solution with Selendroid

JCatLinJCatLin CNMember
edited November 2015 in Xamarin.Android

\Xamarin\Android\generator.exe crashes when build Android jar using some meta data to remove error

Issue:
generator.exe exited with code -1073741819. (MSB6006)

Platform: Windows7/10 x64

**Environment: **
Xamarin Studio
Version 5.9.7 (build 22)
Xamarin.Android
Version: 5.1.7 (Indie Edition)
Android SDK: C:\Program Files (x86)\Android\android-sdk
Supported Android versions:
4.0.3 (API level 15)
4.1 (API level 16)
4.2 (API level 17)
4.3 (API level 18)
4.4 (API level 19)
4.4.87 (API level 20)
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)
Java SDK: C:\Program Files (x86)\Java\jdk1.7.0_55
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) Client VM (build 24.55-b03, mixed mode, sharing)

Jar to be built: Selendroid Standalone with dependencies from http://selendroid.io/

**Step to reproduce:
**
S1. Create a Android Java Binding Solution

S2. Add the jar selendroid-standalone-0.17.0-with-dependencies.jar to the jars directory

S3. Replace the metadata.xml with below content: (to walk around many errors ...)

<metadata> <remove-node path="/api/package[@name='com.google.common.util.concurrent']"/> <remove-node path="/api/package[@name='com.android.ddmlib.log']" name="managedName">com.android.ddmlib.log0</remove-node> <remove-node path="/api/package[@name='com.sun.jna.platform']" name="managedName">com.sun.jna.platform0</remove-node> <remove-node path="/api/package[@name='com.sun.jna.platform.dnd']" name="managedName">com.sun.jna.platform0.dnd</remove-node> <remove-node path="/api/package[@name='com.sun.jna.platform.mac']" name="managedName">com.sun.jna.platform0.mac</remove-node> <remove-node path="/api/package[@name='com.sun.jna.platform.unix']" name="managedName">com.sun.jna.platform0.unix</remove-node> <remove-node path="/api/package[@name='com.sun.jna.platform.win32']" name="managedName">com.sun.jna.platform0.win32</remove-node> <remove-node path="/api/package[@name='com.sun.jna.platform.win32.COM']" name="managedName">com.sun.jna.platform0.win32.COM</remove-node> <remove-node path="/api/package[@name='com.sun.jna.platform.win32.COM.tlb.imp']" name="managedName">com.sun.jna.platform0.win32.COM.tlb.imp</remove-node> <remove-node path="/api/package[@name='io.netty.channel']"/> </metadata>

S4. Build it.

Then the generator crashes...

Can anyone help to take a look ? Or help to build this jar ? (It would be very much grateful)

Thanks

**More question: **

  1. Will this affect the library's functionality when we would need to remove-node to walk-around the error when building the jar?

  2. Any official guide line regarding resolving the errors seen when building Java Binding Solution ?

Thanks again.

Answers

Sign In or Register to comment.