微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Android Studio可以将ant构建脚本转换为gradle构建脚本吗?

嗨,我想将ant脚本转换为gradle.是否有自动转换工具?

我正在尝试使用Android Studio,并发现如果你使用ant build导入一个项目,它会询问你是否将它转换为gradle.即使你单击yes,它也会生成一个gradle脚本包含

// 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()
    }
}

有谁知道我在哪里可以找到转换的gradle脚本,或任何其他方法这样做?

解决方法:

关于你的问题

Does anyone kNow where I can find the converted gradle script,or any other method to do so?

Gradle创建两个build.gradle文件一个在项目级别,一个在项目目录中.应用程序/ src目录.第二个可能包含您一直在寻找的指令.

你可能想看看more detailed description of the Android Studio files.

如果您来这里将通用蚂蚁转换为gradle脚本

这与AndroidStudio 1.3一样开箱即用.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐