简体   繁体   中英

How to use java dependencies to xamarin android project?

I have an gradle dependencies:

dependencies {
    implementation 'com.github.ekodevelops:eko-gateway-android-sdk:1.2.0'
}

Want to create a *.aar file and use it my Xamarin android project How to do it?

We could use the following steps to create a Bindings Library from the.AAR file:

  1. Create a new Java Bindings Library project.
  2. Add a single.AAR file to the project. A binding project may only contain a single.AAR.
  3. Set the appropriate build action for the.AAR file.
  4. Choose a target framework that the.AAR supports.
  5. Build the Bindings Library.

then we could add a reference to the Bindings Library in your Xamarin.android project.

for details, please refer to Binding an.AAR

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM