在此Android Studio项目的build.gradle中声明了哪些第三方依赖项? [英] Which third-party dependencies are declared in the build.gradle of this Android Studio project?

查看:212
本文介绍了在此Android Studio项目的build.gradle中声明了哪些第三方依赖项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将此Android Studio项目转换为Eclipse项目.

I want to convert this Android Studio project into an Eclipse project.

方法是将所有src包和res目录中的所有内容从AS项目复制到Eclipse项目,并通过添加AS项目中的所有其他元素来更改Eclipse项目的清单文件.

The way to do it is to copy everything in all src packages and res directory from AS project to Eclipse project, and change the Eclipse project's Manifest file by adding all the additional elements from AS project.

收获是,我必须对AS项目依赖的所有第三方依赖项(在build.gradle中声明)执行此操作,然后将这些库项目添加到此新创建的Eclipse项目中.

The catch is that I have to do this for all the third party dependencies (declared in build.gradle) on which the AS project depends and then add those library projects to this newly created Eclipse project.

通常,我会为AS项目的build.gradle文件的dependencies部分中列出的每个库执行此操作.但是对于此库项目,我不会了解什么是依赖项:

Normally I would do it for each library listed in the dependencies section of build.gradle file of AS project. But for this library project, I don't understand what are the dependencies:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.1.1'
    apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
}

我不明白第一行和第三行.请告诉我第一行和第三行中声明了哪些库,以便可以在Eclipse中复制那些项目?

这是gradlew.bat -q dependencies命令的输出:

EDIT 1:

EDIT 2:

推荐答案

对于每个项目模块,请从命令行执行以下操作:

For each project module, do the following from the command line:

./gradlew -q dependencies

这将打印出模块具有的所有依赖关系的图形.

This will print out a graph of all dependencies the module has.

这篇关于在此Android Studio项目的build.gradle中声明了哪些第三方依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆