0

I'm a newbie to Android Studio IDE. I used to implement Android application, using Eclipse IDE. As a beginner in Android Studio, I tried this lesson from YouTube to include a external jar file to my project and use it. But unfortunately I'm unable to use that library even though the Gradle or Android build doesn't throw any error/exception when compile and run.

I've seen related questions from SO too. As an example, I've tried out things that discuss in this question.

In the build.gradle file, I used

compile files('libs/jsoup-1.7.3.jar')

and next time used

compile fileTree(dir: 'libs', include: '*.jar')

Neither work for me. After editing that build.gradle file, I used Sync Project With Gradle Files tools and also command line clean

gradlew clean

too. No error/exceptions, but when I try to write Docu... in my MainActivity class it doesn't show the import option org.jsoup.nodes, but show other imports options. What could be the mistake I've done.

Community
  • 1
  • 1
AnujAroshA
  • 4,623
  • 8
  • 56
  • 99

1 Answers1

0

There were some bug in 0.4.2 related to dependencies management, do upgrade your studio to 0.4.3 will solve your problem .

Piyush Agarwal
  • 25,608
  • 8
  • 98
  • 111