简体   繁体   English

在Android Studio中进行编程时,从依赖的jar文件导入到哪里?

[英]Where from dependent jar files are imported during programming in Android Studio?

While dependencies are added to app's build.gradle in android studio, I want to know if any jar files are downloaded while they are added as external jars? 将依赖项添加到android studio中的app的build.gradle中时,我想知道是否在将这些jar文件添加为外部jar时下载了任何jar文件?

Where can I find these jars ? 我在哪里可以找到这些罐子?

Basically, you can include your JAR files in three different ways. 基本上,您可以通过三种不同的方式包含JAR文件。 The last one is remote library that is using https://bintray.com/ jcenter online repository. 最后一个是使用https://bintray.com/ jcenter在线存储库的远程库。 But, if you do it in one of the two other ways, the JAR file will be included physically in your project. 但是,如果以其他两种方式之一进行操作,则JAR文件将实际包含在您的项目中。 Please read this link https://stackoverflow.com/a/35369267/5475941 for more information. 请阅读此链接https://stackoverflow.com/a/35369267/5475941了解更多信息。 In this post I explained how to import your JAR file in Android studio and I explained all possible ways. 在这篇文章中,我解释了如何在Android Studio中导入JAR文件,并解释了所有可能的方法。

In summary, if it is like this (local address), they are downloaded and these JAR files are physically in the project: 总之,如果是这样(本地地址),则将它们下载,并且这些JAR文件实际上在项目中:

在此处输入图片说明

But, if it is an internet address like this, they are remote libraries (bintray.com jcenter part) and they will be used remotely: 但是,如果它是这样的Internet地址,它们就是远程库(bintray.com jcenter部分),它们将被远程使用:

在此处输入图片说明

I hope it helps. 希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM