简体   繁体   中英

How do I incorporate a java SDK in android application development?

I am trying to learn more about DWOLLA, using their sandbox. I am mainly interested in using their access API with an android APPLICATION. The Dwolla API Docs says, "Download and build the JARs to use this library. Maven is required to manage this project's dependencies." The following are the links: git clone https://github.com/Dwolla/dwolla-swagger-java cd dwolla-swagger-java mvn install package

How do I integrate the above in an android application/project. My assumption is that I would have to do it in gradle but I am not certain.

Android apps' dependencies are managed with Gradle . The default repository is JCenter . The Dwolla SDK is found here . All you have to do is, on that page, click on 'gradle' and you get the line that you have to your app's build.gradle file. Here it is compile 'com.dwolla:dwolla-java-sdk:2.0.9' . Add that to your app module's build.gradle under dependencies , refresh the project and you should be fine.

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