简体   繁体   中英

Using a java library in Android Studio

I want to use this java library in my Android Studio project. It's a Java library, not an Android library. How would I import this java library into my Android Studio project so that I can use it in my Android app?

Add the .jar to your app/libs directory.

You should already have this in your build.gradle file, but if not you'll need to add it:

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

You have to download code from Here: https://code.google.com/p/streamscraper/source/browse/

And set .jar file into build path

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