Github Desktop, how to import projects into Android Studio - android

The title says it all. I have recently downloaded Github Desktop in my belief that it would be easier to import projects into android studio. However, I have not found a way to do that. Any suggestions?
Cheers.

I'm unsure if you may have tried this or where you are in the process, but the best way I've seen to import an existing Android project is to import it via the build.gradle. If you already have a project open in Android Studiuo, your're going to want to go to File->Close Project and then from the "Welcome to Android Studio" screen click "Import project(Eclipse ADT, Gradle etc)" and then navigate to your project's build.gradle.

Related

How do I properly import a project to Android Studio?

How do I properly import a project to Android Studio from github?
When I attempt to import the projects from github that is about a year old, I would get errors, and not have a functional project.
https://github.com/baseball435/SpaceInvaders
If I import the project above,
I get this message:
In addition, I get an awkward structure :
To import into Android Studio, select File > Import, and then select the directory containing the project to import. A wizard will open and guide you through the rest of the import process. When the project import has finished, it will open up a file called "import-summary.txt" which lists all the steps taken during import and suggestions for next steps. For example, it may note files that were not migrated, it may note missing components in your SDK install, and so on.
I was successful in importing projects from Github.
I think you should import only the SpaceInvaders-android part.
After import a gradle rebuild is all that is required.
I think this is the Importing github project you need. Just follow the steps.
Install git for Windows
It can be downloaded for free from git-scm.com.
Link git executable to Android Studio
Open Android Studio and got to Settings. In the Setting dialog open the page Version Control / Git. Here define the path to the git executable you have just installed.
Get the Path to your Repository from Github
Go to the GitHub page and get the HTTPs path to your repository.
Import the Git project to Android Studio
Go to Android Studio and go to Menu / VCS / Checkout from Version Control / Git

importing netbeans android project into android studio

I used to work on a project on netbeans which turn out to be the least intuitive IDE for android, now trying to switch to android-studio I can't manage to find way neither to export properly the netbeans project nor importing the netbeans project into android-studio ..
How can I import netbeans android project into android studio? it has something to do with gradle I suppose ..
It's maybe late, but i think can help someone else.
Android Studio can import netbeans android projects. Just open import project window by selecting File -> new -> Import Project and address the netbeans project root. Android Studio does the rest.
A little late, but I partly ran into the same and solved it so far.
You can add .jar files under app/libs paste it there and right click it -> add library. (I believe)
It should look like this. Android .jar into Libs
This would be partly a solution, you have to create an android xml as well.

Android Studio - Difference between Import project and Open project

I have been using Android Studio since one of the first releases (about one year ago, since I/O 2013)
However I have recently noticed that in the first screen when lets you to create a project there are also Open and Import project options, and I cant find any difference between them
I remember that in Eclipse, import project would make a copy of the project in the workspace... However, in Android Studio there is no workspace as far as I know...
So, what are the differences between Import project and Open project?
I think there is no much difference if you are working with gradle project. Since Android Studio tries to sync project every time when project is opened.
However there is difference if you try to import Eclipse project folder. In this case it will migrate it to gradle project structure.
Watch this new IO video talk to get more about tools https://www.youtube.com/watch?v=hu4U8XKmJGA

Eclipse not Recognizing any imports

I seem to have botched up something in Eclipse. It isn't recognizing any of the libraries that I am trying to import.
Here are some of the things not being recognized:
import java.util.ArrayList;
import android.content.Intent;
import com.google.android.maps.MapView;
This is a open source project that I downloaded and then imported into Eclipse. I think I also downloaded the google apis the wrong way because things like MapView don't work in my other projects as well. Can someone please help me out?
Best,
Aneem
EDIT:
Fixed, most of the issues. Did it by hovering mouse to import line and clicking "Fix project setup..."
Now the only thing I have to do is get the google map related API to work.
To check if you have properly installed ADT
goto -> Window -> Preferences.
If you see Android (in the preferences), it means you have ADT installed.
To point to the valid SDK directory, click on Android. Specify the location in the SDK location.
Even if you have correctly installed ADT and SDK, there is a chance that eclipse may not recognize as the Android project if you import it(depends on the project & files).
Best thing is, to create a new Android project and copy the files from the imported project to the newly created Android project. This will definitely work.
Two things to consider:
Open project properties -> Android section, see if Android SDK is selected or not. if no SDK is selected just check it.
In project properties -> Java Compiler section, change "Compiler compliance level" to "1.6". This is because you have installed JDK 1.7 that has some problems with some packages!
Most likely your ADT plugin is not pointing to the Android SDK. Follow the instructions for installing and configuring the plugin:
http://developer.android.com/sdk/eclipse-adt.html
I right clicked on the project and selected properties and added Google APIs 2.3.3 as the target and did a project->clean and was able to launch the application. Many thanks.

How do easily I import eclipse android project into Intellij IDEA 10

I have an Android project in eclipse and would like to move to Intellij IDEA.
But I didn't find easy way to import existing android project.
General project import doesn't recognize that my project for Android.
Make sure you add the android SDK....Right click on the project -> Open Module Settings -> Facets
More info can be found here in the comments, specifically there's an article from jetbrain's wiki

Categories

Resources