Android的工作室:是库项目依赖从project.properties挑? [英] Android Studio: Are Library Project dependencies picked from project.properties?

查看:109
本文介绍了Android的工作室:是库项目依赖从project.properties挑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经进口的ADT我的项目,将模块设置和编辑依赖的东西都工作正常后。 我的build.gradle具有依赖性阻止空的,所以我是从哪里知道Ansdroid工作室采摘库的依赖?当我从Eclipse的迁移,所以我必须在模块目录project.properties文件。难道Android的工作室挑选这些东西从project.properties文件?

I have imported my project from ADT and after going to "Module Settings" and editing dependencies things are working fine. My "build.gradle" has dependencies block empty, So I am wondering from where is Ansdroid-Studio picking libraries dependencies ? As I migrated from eclipse so I have project.properties file in module directory. Does Android-studio pick these things from "project.properties" file ?

推荐答案

Android的工作室的默认项目的支持是通过摇篮做,除非你有一个Android项目的的IntelliJ到来,您可以使用Studio打开为好。

Android Studio's default project support is done through Gradle, unless you have an Android project coming from IntelliJ which you can open with Studio as well.

如果您使用的摇篮,project.properties完全被忽略。你不应该使用的模块设置现在添加的依赖,因为它只是改变了IDE而不是基于摇篮构建系统(我们将在以后的版本中解决这个问题)。

If you use Gradle, project.properties is completely ignored. You should not use the Module Settings to add dependencies now as it only changes the IDE but not the Gradle based build system (we'll fix this in later versions).

如果你丢失了一些依赖于你的build.gradle,这可能是由于在ADT的出口中的错误。我们已经修复了这个即将推出。

If you have missing dependencies in your build.gradle, it may be due to a bug in the export from ADT. We have fixes for this coming soon.

这篇关于Android的工作室:是库项目依赖从project.properties挑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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