Bug 25196 - Can't specify aar as dependency to binding project
Summary: Can't specify aar as dependency to binding project
Status: RESOLVED ANSWERED
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 4.20.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2014-12-09 13:47 UTC by Jeremy Kolb
Modified: 2014-12-09 14:16 UTC (History)
1 user (show)

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


Attachments
Mapbox binding project (6.07 MB, application/octet-stream)
2014-12-09 13:48 UTC, Jeremy Kolb
Details


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:
RESOLVED ANSWERED

Description Jeremy Kolb 2014-12-09 13:47:45 UTC
I'm trying to bind the mapbox android sdk from https://github.com/mapbox/mapbox-android-sdk/ and am struggling with dependencies.

I was able to find all the dependencies as jars by searching on maven except for geojson which is an aar.  I've tried marking geojson-1.0.0.aar as both an EmbeddedReferenceJar and EmbeddedJar and neither seems to work.

This is some of the output I get when compiling the attached project.

1>JARTOXML : warning J2XA006: missing class error was raised while reflecting com.mapbox.mapboxsdk.overlay.GeoJSONPainter$LoadAndDisplay : com/cocoahero/android/geojson/FeatureCollection
1>JARTOXML : warning J2XA006: missing class error was raised while reflecting com.mapbox.mapboxsdk.util.DataLoadingUtils : com/cocoahero/android/geojson/FeatureCollection
1>JARTOXML : warning J2XA006: missing class error was raised while reflecting com.mapbox.mapboxsdk.views.MapView : com/cocoahero/android/geojson/FeatureCollection
1>BINDINGSGENERATOR : warning BG8604: top ancestor MapView not found for nested type Mapbox.MapboxSdk.Views.MapView.1
1>BINDINGSGENERATOR : warning BG8604: top ancestor MapView not found for nested type Mapbox.MapboxSdk.Views.MapView.LayoutParams
Comment 1 Jeremy Kolb 2014-12-09 13:48:48 UTC
Created attachment 9007 [details]
Mapbox binding project
Comment 2 Atsushi Eno 2014-12-09 14:16:43 UTC
You could create another binding project that targets the dependency aar and reference it within the binding project for the depending aar. That's what we support. Without managed binding to the dependencies it is impossible to bind public API that uses dependencies anyways.