AndroidP
AndroidP

Reputation: 771

Migrating Eclipse to Android Studio with missing build.gradle

As advised by many, I am trying to make the switch from eclipse to Android Studio. Following the advise in https://developer.android.com/sdk/installing/migrate.html I imported the eclipse workspace directly without generating the gradle files from Eclipse. However after importing, none of my projects have a build.gradle file where I can add a classpath and stuff.

Please advise, is there a way to generate the build.gradle file or something?

Thank you.

Upvotes: 2

Views: 1758

Answers (2)

jbxbergdev
jbxbergdev

Reputation: 880

I had the same issue. My project referenced several library projects, which lived in nested folders within the main project folder. After flattening the folder structure (i.e. putting the library projects in the same folder as the main project), the Gradle files were generated. However, I got a more simple import workflow with only some check boxes to set. I'm using Android Studio 1.2.1.

Upvotes: 1

m02ph3u5
m02ph3u5

Reputation: 3161

Have you read this? Looks like you didn't get the special import wizard flow. At least for me this was the case.

The root directory of the project you import must have an AndroidManifest.xml file.
Either:
    The root directory must contain the .project and .classpath files from Eclipse
or
    The root directoy must contain res and src directories.

Upvotes: 2

Related Questions