bugfixr
bugfixr

Reputation: 8077

Migrate project to Gradle

I've got a project that used to be in Eclipse. I've since moved it from there into Android Studio, though it's not using the Gradle build system yet.

I've setup my gradle files so that I can do gradlew build from the command-line and it will generate an APK for me.

My question now is how do I get Android studio to build using the gradle files that I've got setup instead of the using the "old" way?

For what it's worth, I'm on Windows 7.

Upvotes: 2

Views: 9120

Answers (1)

jlhuertas
jlhuertas

Reputation: 1477

Not sure how you are compiling the project with Android Studio without actually using Gradle because AFAIK Android Studio always uses Gradle under the hoods to build sources.

Anyway, if you have your Gradle config file ready you only have to import it to a new project in Android Studio (File > Import Project... and then select the build.gradle or settings.gradle)

Upvotes: 1

Related Questions