How to insert Droidsoapclient library into my Android application?

Asked

Viewed 77 times

0

I’m having difficulty importing the library Droidsoapclient in my application, I use Android Studio to develop and I’m inserting this library in the folder Main, but it seems that the import is not lozalicando the file, or most likely I’m missing somewhere.

What should I do to properly import this library? https://code.google.com/p/droidsoapclient/

  • Could post your gradle.build?

  • Regarding the location, can not put jar in the briefcase src, is in the folder libs. And erase all the compile file, to compile fileTree(include: ['*.jar'], dir: 'libs') you’ll get the jar of droidsoapclient and add to apk.

  • I added droidsoapclient to the libs folder, added it to the blibioteca and fixed Gradle.build to dependencies {
 compile fileTree(include: ['*.jar'], dir: 'libs')
}, Now how should I do the import command?

  • Just follow the site tutorial by using the SoapClient.

1 answer

1


You must insert the . jar into the libs folder.

Then right click on it and choose an option that is over at the end:

Add as Libray

Ready!

Check this in the build.Radle file of the app (the above procedure should already work)

dependencies {
    // ================== LIBRARIES ======================
    compile fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
}

repositories {
    flatDir {
        dirs 'libs'
    }
}
  • I added the library in the informed way, but I’m still wrong on the import path.

  • What error is appearing to you?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.