Android的可转换工作室Ant构建脚本来摇篮构建脚本? [英] Can Android Studio convert ant build script to gradle build script?
问题描述
您好我想ant脚本转换为gradle.Is有一个工具自动转换?
我想的Android Studio和发现,如果导入一个项目,Ant构建它要求你将它,它隐蔽到gradle.Even当您单击Yes时,会生成一个包含脚本的gradle
//顶级构建文件,您可以添加常用的配置选项,所有分项目/模块。
buildscript {
库{`
mavenCentral()
}
依赖{
类路径'com.android.tools.build:gradle:0.8.+
}
}allprojects {
库{
mavenCentral()
}
}
有谁知道在哪里可以找到的gradle转换脚本,或任何其他方法这样做呢?
关于你的问题
有谁知道在哪里可以找到的gradle转换脚本,或任何其他方法这样做呢?
块引用>摇篮创建两个
的build.gradle
文件:一个在项目层面,一是在项目目录。应用程序/ src目录
。第二个可能包含你一直在寻找的指令。您可能想看看一个了Android Studio的文件更详细的说明的。
如果你来这里是为了一个普通的蚂蚁转换为脚本的gradle
本作品外的即装即作为AndroidStudio 1.3。
Hi I want to convert ant script to gradle.Is there a tool for automatic conversion?
I was trying Android Studio and found out that if you import a project with ant build it asks you that shall it covert it to gradle.Even when you click yes,it generates a gradle script containing
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories {` mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.8.+' } } allprojects { repositories { mavenCentral() } }
Does anyone know where I can find the converted gradle script,or any other method to do so?
解决方案Concerning your question
Does anyone know where I can find the converted gradle script,or any other method to do so?
Gradle creates two
build.gradle
files: one at the project level, one in the project directory.app/src
. The second might contain the directives you have been looking for.You might want to have a look at a more detailed description of the Android Studio files.
If you came here to convert a generic ant to a gradle script
This works out-of-the-box as of AndroidStudio 1.3.
这篇关于Android的可转换工作室Ant构建脚本来摇篮构建脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!