简体   繁体   中英

How to add Gradle to an existing project in Android Studio?

I have an existing project in Android Studio that I originally imported from Eclipse.

I haven't been using any specific build system to build my project other than the one provided by default with the Android Studio IDE (though the project was originally created with Eclipse.

I haven't been able to find a good tutorial of the steps. What's the recommended approach to add Gradle to this project?

Any help would be greatly appreciated.

Thanks!

I would recommend creating a new project in android studio as the folder structure used by gradle is different than the one used by eclipse. Then copy the files into their matching folder.

Here is a detailed description about the folder structure: https://developer.android.com/tools/projects/index.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM