Import Android Project created from terminal - android

I created an Android project from terminal because when I create it inside Eclipse there's a problem with the R.java file, which is not created. I think I bypassed the problem creating the project from terminal. I want to know if there's a way to import it in Eclipse and work with it as a normal Android project created inside the IDE. Thank you!

In Eclipse to File -> import
select android--> existing code into workspace
find the root folder of that project, select
then check the project
and follow the steps.
It will be imported to Eclipse.

Related

Unable to open cordova project in eclipse

I try to import my cordova ionic project to eclipse as an existing android application but it was undetectable? Any idea why? I could run my app in android phnoe using 'ionic run android' but why it can be imported to eclipse?
I also installed android studio and it has the same problem. I don't have a clue why is this happens..
Remove all CordovaLib that exists inside eclipse and import it again. It works 100% most of the time. Second time you import the project you will enable import your project with CordovaLib. It happens because there are existing CordovaLib inside your eclipse.
You have to choose the platforms/android folder when you want to import in eclipse, not the root of your project.
Eclipse only knows the android project, but not the cordova project.
And then select both your app and the CordovaLib projects.
But be aware that changes made in /www will only take effect in eclipse after you rebuid the project.
Or you can use eclipse project properties to unhide assets/www an in that case be aware that any changes in assets/www will be lost if you use the cli to build your project (and the same goes for any change in platform/android).
That's why I only use eclipse when I need to debug (mostly for plugins).
I faced a very same issue,
Please make sure - you are importing the project using already existing android code under the Android tab in import option. Not with already existing project option in general. This one fixed my issue,
Hopes this one will help some to save some valuable time ...

How to import android source code(AOSP) into Android studio?

I know how to import android source code into eclipse, but is there any way to import android source code into android studio. Because I want to change my IDE from eclipse to android studio.
I know this was already answered, but I wanted to add onto this for anyone else that sees this.
For Android studio:
Open terminal (*nix system) call the following:
{AOSP root}/make idegen && development/tools/idegen/idegen.sh
This will generate an android.ipr file in the {AOSP root} directory.
In Android Studio, select 'Open project' and select the generated android.ipr file.
Note: this will take a long time to index all the files (~2 hours). Be patient. If a dialog box that says 'Framework detected' appears, select that and hit 'OK'.
Now you have the entire Android framework loaded into Android Studio.
I found the answer from my colleague, he told me that , use the file in
sourcecode/development/ide/eclipse/.classpath
this file is for eclipse to import android source code . but there is a way to transfer this file into a intellij project import file . sorry , I also don't know how to transfer. but my colleague email me a *.iml file.yeah ,this is the file that can help you crate the intellij module .
After you get the file ,copy that *.iml file to the root of your sourcecode,then you can open the intellij,create a empty project ,import module from existing module ,then in the window ,chose the *.iml file ,after that ,the only thing you can do is wait . it takes much time to import it.
so ,you can develop the android source code in intellij . enjoy it!
Follow the steps to Migrate to Android Studio:
Export from Eclipse
In Eclipse, select File > Export.
In the window that appears, open Android and select Generate Gradle build files.
Select the project you want to export for Android Studio and click Finish.
Import to Android Studio
In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
Click Import Project.
Locate the project you exported from Eclipse, expand it, select the build.gradle file and click OK.
In the following dialog, leave Use gradle wrapper selected and click OK. (You do not need to specify the Gradle home.)
That's all you need to do. For more you may refer to official doc.
check this link
http://effie.io/opening-aosp-with-intellij-part-3/
this has all the steps to open AOSP In intellij or Android studio, with some additional steps to fix some errors.

Cant import PhoneGap 3.4 project inside Eclipse workspace

I have created phonegap project.And successfully, it is running on AVD. But, when I tried to impport that project inside my eclipse workspace....nothing happened.
Here is the screenshot appering & no action taking place after I clicking finish.
You should checked copy projects in to workspace.
And make sure your project is properly built into android platforms.
Your final import will be like this on eclipse.
Hope this will help you !!
don't click on copy projects in to workspace option ,
and don't try to import that project inside my eclipse workspace drive .
Check copy projects in to workspace and try again

how to share an android project with sourcetree and eclipse

I'm having a lot of problems with sharing a android project using sourcetree and eclipse.
I have tried the following:
- First importing the git from sourcetree and afterwards importing this in eclipse
- Creating empty project in eclipse and then try to import to it throught git/sourcetree.
It seems like no matter how I try to do it, it doesn't do it right. Some of the attempts, I have duplicated projects (which is created by eclipse twice, I dont know why)
Anyway, can anyone give an explanation on how to import a project from git so that I can see the changes in eclipse and push/pull/commit in the source tree?
Any help will be greatly appreciated.
Just clone your project with sourcetree on your Desktop (e.g) then add your project to Eclipse
Right click on the Package Explorer -> Import -> in Android -> "Existing Android Code Into Workspace" -> Select your folder project then click Finish.
You can also copy the project to your workspace by selecting the checkbox.
I zip the project folder.
I then extract it on another computer and import the project in Eclipse again...
Easy, isn't it?

Not able to import git android project in Eclipse

I tried several times to import this git repos into my eclipse and run it as android application, but no success.
Can someone please suggest me how to import it in correct manner.
Please try these things:
Check whether is a same mane project existing in your eclipse work-space?
Restart eclipse and then try the same
Import project as existing android code not as existing project
Steps : Import-> Existing android code into workspace -> Also mark copy into workspace-> Done
If there is not visible option of copy into workspace then probably there is already similar name project into workspace. First delete that and try the same.
Try to Clone in Desktop or Download Zip.
Then from Eclipse, Import > Existing projects into Workspace.
Hope it work.

Categories

Resources