Android的工作室:是库项目依赖从project.properties挑?工作室、项目、Android、project

由网友(一米阳光三寸暖)分享简介:我已经进口的ADT我的项目,将模块设置和编辑依赖的东西都工作正常后。我的build.gradle具有依赖性阻止空的,所以我是从哪里知道Ansdroid工作室采摘库的依赖?当我从Eclipse的迁移,所以我必须在模块目录project.properties文件。难道Android的工作室挑选这些东西从project.p...

我已经进口的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.

阅读全文

相关推荐

最新文章