I am a freshman in android development and want to use webservice by some jars.(The webservice has been written and publish). Then I use Ksoap.jar and Jsoup.jar. In android studio. I try to import them. It shows successful but I still cannot use the classes in the jars.
The build.gradle shows below:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
compile files('libs/ksoap2-android-3.4.0.jar')
compile files('libs/jsoup-1.8.3-sources.jar')
}
But in my activity, I still cannot import them. How can I solve this problem? It drives me mad.