i try to reference google play services to VS project but i have two issues
when i try to reference the aar library in Android sdk directory structure the build stops with error that cannot find library (in case i put aar in to the root project directory this error disappears)
but for the next error i was not able to find any workaround
error JE20: Could not load referenced Java archive “classes.jar”: Invalid reference
Any idea how to reference aar libraries in Visual Studil Swift project ?
Sorry for the delayed response. Is this with 8.3 or the 8.4 beta?
we made significant changes and improvements to the reference tool chain for 8.4, so if you’re currently on 8.3, i recommend trying the latest, before we investigate further. In general, just adding the .aar as reference should “work”.
now i have tested latest beta and I receive this exception during build
process
C:\Users\radl\OneDrive\Dokumenty\Visual Studio
2015\Projects\org.me.androidapplication1\org.me.androidapplication1\Android\aarrefs\play-services-maps-9.6.1\res\values\values.xml(3,1):
error Android: Attribute “mapType” already defined with incompatible format.
C:\Users\radl\OneDrive\Dokumenty\Visual Studio
2015\Projects\org.me.androidapplication1\org.me.androidapplication1\obj\Debug\Android\aar\play-services-maps-9.6.1\res\values\values.xml:3:
Original attribute defined here.
Hmm, sounds like for some reason two versions of the values.xml file are being processed, one from Android\aarrefs (where does that come from?) and one from \obj\Debug\Android\aar\ (that’s where we un-archive the .aar’s to during build.
Could the first one bet a leftover from an earlier version? Did you put stuff in \Android\aarrefs\ yourself? what happens if you delete that folder?
sorry for the delay. i still don,t see where to find the zip file with your project. i didn’t receive it, and it’s not attached here. can you mail a copy to mh@remobjects.com? thanx!
public override func onCreate(savedInstanceState: Bundle!) { // E178 Cannot find a suitable method in the base class to override with signature "onCreate(# savedInstanceState: Bundle!)"
// N12 Possible match: onCreate(_ Bundle!)
which needs an underscore for Swift 3, e.g.:
public override func onCreate(_ savedInstanceState: Bundle!) {
and after that, all builds (and fails on me not having your keystore; expected).