Bug 17146 - Reference jars from referenced dlls are not passed to jar2xml with JavaLibraryReference
Summary: Reference jars from referenced dlls are not passed to jar2xml with JavaLibrar...
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Tools and Addins ()
Version: 4.10.1
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: 4.16.0
Assignee: Bill Holmes
URL:
Depends on:
Blocks:
 
Reported: 2014-01-09 10:41 UTC by Bill Holmes
Modified: 2014-08-28 16:34 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Bill Holmes 2014-01-09 10:41:48 UTC
To show the problem clone the components project and checkout the androidsupport branch (this branch will be deleted when I merge to master later.  You may have to look there.)

git clone git@github.com:xamarin/components.git
git checkout androidsupport

run make from the XamAndroidSupportV7AppCompat directory
open the XamAndroidSupportV7AppCompat/source/samples/AndroidSupportSample/AndroidSupportSample.sln solution

Under the Jars folder of the Xamarin.Android.Support.v7.AppCompat project change the build action for android-support-v4.jar to None.  

Build the solution.  

The binding will build a 'valid' dll, however many types will be omitted as shown by all the errors generated in the sample app.  

I believe this is because the v4 jar file is not being passed to the jar2xml step.

Tool /usr/bin/java execution started with arguments: -jar /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/jar2xml.jar --jar=/Users/billholmes/Documents/Git-Xamarin/components/XamAndroidSupportV4/source/binding/Jars/support/v7/appcompat/libs/android-support-v7-appcompat.jar --ref=/Users/billholmes/Library/Developer/Xamarin/android-sdk-mac_x86/platforms/android-16/android.jar --out=/Users/billholmes/Documents/Git-Xamarin/components/XamAndroidSupportV7AppCompat/source/binding/obj/Debug/api.xml --javadocpath=/Users/billholmes/Documents/Git-Xamarin/components/XamAndroidSupportV7AppCompat/source/binding/docs/
Comment 2 Saurabh 2014-08-06 11:26:17 UTC
I have tried to check this issue but when I am trying to clone git clone git@github.com:xamarin/components.git, It is showing me 'ERROR: Repository not found.' Please let me know is is correct repository or not?
Comment 3 PJ 2014-08-06 14:21:20 UTC
Saurabh the components team will verify this one.