Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Eclipse Import Existing Code

I am trying to organize my code for SVN so I can work from multiple locations without issue and potentially add more developers. The problem is that I can't get the code into a new project easily. I am trying to create a project from existing code.

Once I select the folder, the "main activity" shows up, but I can never use it. I've tried deleting all the .project files and what not in the folder as well, but the thing is always greyed out and I can never get it to import.

Why is it greyed out? What do I need to do to get it to import?

-- ADT Build v21.0.0-519525

Import Projects Grey

like image 926
teynon Avatar asked Jan 16 '13 02:01

teynon


People also ask

How can I use downloaded code in Android Studio?

Importing into Android StudioOpen Android Studio and select Open an Existing Android Studio Project or File, Open. Locate the folder you downloaded from Dropsource and unzipped, choosing the “build. gradle” file in the root directory. Android Studio will import the project.


1 Answers

I played around with this a bunch and found out that it was conflicting with another similarly named activity that already existed in the workspace. The error message "Select at least one project" was covering up that message. It would appear very quickly and then switch to select at least one project.

To get around this, I deleted all the projects from my workspace. I didn't know which one it was because I am making an app that is being versioned and branded for different companies.

like image 196
teynon Avatar answered Oct 01 '22 05:10

teynon