Eclipse workspace is not refreshing - android

I'm using Aptana Studio 3 as my text editor and Eclipse for my Android developement. I'm also using Phonegap for the creation of Android specific app dev.
I don't fully understand Eclipse workspaces. I import an existing android project into my Eclipse workspace and when I make changes to the project in Aptana - the changes are not taking effect in eclipse.
Why?
BTW, I'm using the Eclipse version that ships with the ADT Build: v22.0.1-685705.

While importing, "Copy files into Workspace" is checked by default. Make sure to uncheck this. Otherwise Eclipse creates a Copy of your Sources in its workspace directory.
If This Option is unchecked Eclipse uses the existing files.

Click on the highest project, (or the files you're working on in Aptana) and hit F5. Ctrl+A in the project explorer and F5 will refresh all files

Related

Move a project from one laptop with eclipse to another with android studio

I have my project in eclipse on my old computer. I now have a new one I put android studio on. Can anyone tell me how to get my project onto my new laptop with android studio from eclipse on my old computer?
My new computer has android studio not eclipse.
First of all, you need to move the files to your new computer ;) then you have two possible approaches:
Importing the Eclipse project directly into Studio (inside Studio, via File > Import Project, and then selecting the directory containing your Eclipse ADT project).
Exporting the Eclipse project from Eclipse as a Gradle project (may need a recent version of Eclipse).
Check this tutorial for further help.
Just copy your project folder and pass it to your new computer. That's it.
Eclipse keeps all project settings in a file inside the project folder.
However, you might need to change a few paths when starting the project on your new PC if you have been using absolute paths.

How To Open an Existing project in Android Studio

All the questions dealing with this are now outdated. I am simply trying to open an existing Android Studio project.
I have cloned a repository for a project from http://blog.stylingandroid.com/material-part-2/
I have all the files, I choose "Open an existing android studio project" and then choose the "Material" folder which is the root directory of the project. When the project loads, it is called "gradle" and there are no files showing in the project frame.
I am using the latest version of android studio and the latest build tools as of 19 Dec 2014.
How do I import a project?
From the Android Studio welcome screen, try "Import Non-Android Studio project". It sounds like exactly what wouldn't work, but it does.
On 1.5.1, there's no Import Non-Android Studio project as the accepted answer says, but chosing Import project (Eclipse ADT, Gradle, etc.) does the trick. Open an existing Android Studio project does not work. Still quite weird.
Click on file, then click on Open. select the main file that contains the project's name without opening the file.
then Gradle loads but still nothing happens and the welcome screen is shown. press the combined keys of Alt+1 then the project files will appear on the left side of the screen.
Sometimes it is tricky to open Android project. My tip is try to use
File -> Open... -> <path_to_settings.gradle>

android studio new project missing folders

I have created a new project using the latest version of Android Studio (0.2.2), this is a fresh install of studio. When I am in the project explorer view, it fails to show me any folders for my project. I should see a root project folder, and within it the .idea, gradle, and module folders, but they are not showing.
Here is what I expect to see (taken from the sample project created on first boot):
But here is what I see immediately after the project's creation:
I cannot figure out how to expose my project's folders! I do not want to develop without the project explorer, it's simply too much of a hassle. Did I create the project incorrectly, or am I missing some not-so-obvious setting somewhere?
Thanks.
The problem here is that I assumed android studio would create a module for the application. I assumed this because it asked me at the beginning for app name, module name, package, sdk info etc.
This assumption turned out to be false. You must create your first module manually through File > Project Structure. After that is done, the project explorer shows the files.
File -> Project Structure -> Modules
Add Button (Green plus button) click -> New Module Select
New Module window -> "Content root" change path button click to select "Project root file path"
Apply to change save and "OK" button exit.
In the project Explorer there is a drop down menu where you have selected project, now change it to project files.
I hope this will solve your problem. reply if it didn't.
You have created a new gradle project not a new android project.
Update your android studio tools to 0.2.3 - Go to Help menu - select check for update.
then Update your android sdk tools, android support repository, android support library and android build tools using android sdk manager.
And update some configuration in project structure. Go to File menu->project structure -> in projects tab select Android SDK as default sdk and in SDKs tab set correct path to updated android sdk.
Now restart android studio and try to create a new project and it should work fine.
(Noted for posterity) I had a similar issue come up recently, when importing an Eclipse android project. The issue was that the source folder wasn't added as such. I had to manually go into Project Structure -> Modules -> Sources and make sure that the "src" folder wasn't excluded and was marked a source folder.
Although this question is asked years ago. But now following simple solution worked for me.
Clicking 'Sync Project With Gradle files' makes all directories visible.
I had this exact same issue, there are some problem if you upgrade from 0.1.9 version to 0.2.0 in Windows.
Android Studio 0.2.0 Release
The solution (which worked for me) was to completely uninstall Android Studio and reinstall the 0.2.0 version.
I had the same problem today. Additionally, the IDE posted an "Assertion Error" into its event log.
Downloading and reinstalling the preview version, then applying the patch to 0.2.6 worked for me.
Change the SDK to a level that you have installed in the SDK manager. The SDK manager can be accessed from Tools -> Android -> SDK Manager. For me, Android Studio was packaged with API Level 17 but the new project wizard tried to target API Level 18.

Unable to launch android applications in Eclipse

I am having a weird problem with Eclipse.
Some days back, I completed a project with the name IntelligentAlarm, and then pushed it to github. I was using Eclipse Indigo then. After that I formatted the system, and downloaded Eclipse Juno. I cloned this repository from github, and imported this project into Eclipse as an android application.
But now, I am unable to run it as an android application. The option which allows you to run it as an android application is missing. Neither can I create a new Run Configuration for this project, as I don't see this project in Browse window.
I should add that I am able to run newly created android projects.
What should I do ?
If you formatted your hard disk your workspace is gone. This means you have to import your cloned project into Eclipse (Import existing Android project into workspace). This adds your project to the newly created workspace. After that, if will be shown in your IDE as usual.
It might be that you have still some things to do, for instance downloading the SDK platforms and creating an emulator.
After this you should be able to run your program as an Android project.
I would re-do the android app setup configuration in Eclipse again and see if the
Run > As an Android App
option comes back.
Setup Eclipse form scratch to enable Android Development Environment. enter link description here
Then create new project from your existing code. Since you exisitng eclipse project will have the properly files it will enable any old properties.
Hope you have your old workspace.
Quick Solution: *You can try deleting the .metadata folder under workspace folder which can recreate the .metadata folder for you when restart the eclipse*

Android, Eclipse, and SVN, how can I make them all happy?

I am creating an Android Application with a team of others. Typically I use netbeans, and I have never had trouble with netbeans or svn. But as eclipse has the android plugins, we are using eclipse.
What I need to do is check in my current a android application, so that then my team members can all check it out(as an android project) and continue to develop and test on their own computers.
Current when we check out a project from SVN, eclipse does not recognized the project as an android project.
I recently had this problem too. The thing is that the ".project" file was not imported in SVN; because of this Eclipse will add a new ".project" file whenever and however you check out the project from SVN; the other part of the problem is the poorly designed "Android Project from Existing Code" option.
Solution:
- delete the .project file from your working copy
- ["optional"] move the project folder somewhere else (because the "Android Project from Existing Code" option will not work if you try to create the project in the same place)
- create new project and select "Android Project from Existing Code"
After creating the project commit the newly generated .project file to SVN; this way the others will be able to simply click "Check Out" and start working :)
Note: Make sure to also commit the other android related files (e.g. project.properties)

Categories

Resources