[英]Using a java library in Android Studio
I want to use this java library in my Android Studio project. 我想在我的Android Studio项目中使用此 Java库。 It's a Java library, not an Android library.
这是Java库,而不是Android库。 How would I import this java library into my Android Studio project so that I can use it in my Android app?
如何将这个Java库导入到Android Studio项目中,以便可以在Android应用程序中使用它?
Add the .jar to your app/libs directory. 将.jar添加到您的app / libs目录。
You should already have this in your build.gradle file, but if not you'll need to add it: 您应该已经在build.gradle文件中包含了它,但是如果没有,则需要添加它:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
You have to download code from Here: https://code.google.com/p/streamscraper/source/browse/ 您必须从以下位置下载代码: https : //code.google.com/p/streamscraper/source/browse/
And set .jar
file into build path 并将
.jar
文件设置为构建路径
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.