I work upon an Android project on MacOS. Recently i had to create a copy of my project in another location. Say it was Users/user/SVN/Applications/BarPoject/AndroidBarProject and now it is Users/user/Projects/AndroidBarProject.
Now i'm trying to make Eclipse work with the project in new location. When launching Eclipse i browse to the new workspace then i click OK and then i'm presented with a popup alert which reads:
An error has occurred. See the log file /Users/user/Projects/AndroidBarProject/.metadata/.log
What i do next is i open Eclipse in the old workspace and click File/Switch Workspace but again i see exactly the same popup message. How do i fix it?
Open Eclipse -> File -> Switch Work Space-> Other
Related
I'm able to open all my AndroidStudio projects but one. The window don't even show up and the preview form Windows is just a blank page.
I already try to clean cache, delete gradle files - from the project and the one located on the user directory - .
preview with a working project on the side
I was resolving this issue for weeks and this is what finaly helped:
open "File/Open Recent/Manage Projects..."
find the faulty project and remove it from recent projects
open "File/Open..." and open the project again manually
when the dialog appeared, I pressed "this window" and it finally opened.
There may be some corrupted project configuration file.
Try to create a new project, check that everything works, and then copy the app/src folder from the old one to the new one (only the src folder).
You didn't mention it but I hope you have already tried restarting your pc, otherwise try.
Can't find the option in Android Studio to switch between workspaces like in Eclipse.
Is there only way to add path when creating Project? Or any other way?
you can open a separate window that how it goes in android studio since this is based on IntelliJ IDE,
click on
File-->open-->open and select the project, this will ask you in a window saying do you want to open in new window or same click on new window.
Before start exploring Android Studio please read Project and File Structure
You can try with -> Press Cntrl+Shift+F Then change Directory Location .
Change default save location of projects (or Workspace ) in Android Studio
Just follow this steps given below, because the Android Studio doesn’t work quite like Eclipse does. It's simpler: if you create a project at, say /home/USER/Projects/AndroidStudio/MyApplication from there on all new projects will default to /home/USER/Projects/AndroidStudio. So, your current directory will be your current workspace.
1- Open new project
2- Change project location name by typing and not browse button
3- Next button will appear now
And if you want to change current then rename current directory and reopen that project.
I have been studying Android on Eclipse Mars for some time and i have been facing a constant problem everyday-the changes made in a folder/file are not recognized by some other folder/file. For example, if i create a new layout in the layout folder and then use it in the setContentView, it shows me an error ("layout-name cannot be resolved or is not a field). It works if i save the project,close it, and open it again, but this takes up a lot of time if i have more than one error, so the question-is there a way to save and refresh the project (without having to close it) so that the newly made files and folders are recognized by the java files?
Thank you.
You can refresh your project in Eclipse by right clicking on the project root folder in your Project Explorer and selecting "Refresh".
You may also want to consider checking if you have "auto build project" turned on. In your top toolbar go to Project -> Build Automatically.
If build automatically is turned off you will have to manually build your project, by Right Clicking on the project in your Project Explorer and selecting "Build Project".
However, I do agree with Pankaj Nimgade that Android Studio is likely a better entry point IDE for Android development.
Real advice: Switch to Android Studio as soon as you can. There you would sometimes have another problem called "sync" though. But it's a much better IDE and you are at least in line with Google.
on Eclipse, F5 should do the trick. Or right click your project and Refresh. Or Clean all projects. If you are still stuck, simply close Eclipse and run it again.
I recently reinstalled my OS, and used to have a PhoneGap / Android project. Now I want to use it again, so I reinstalled Eclipse and the ADT plug in. So far so good. Now the instructions say:
"Choose New > Android Project"
However, Android Project doesn't show up under new projects, like it used to.
http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-eclipse-for-android.html
I downloaded phonegap-2.6.0, but perhaps it isn't connected to Eclipse... what do I do at this stage to get Android Project to show up?
If there is no 'Android Project' under the menu it is not about PhoneGap it is maybe about ADT, are you sure you installed it correctly ?
And, also you can create Android Project with PhoneGap by using 'command line', then you just go to the same menu:" New > Project " then choose Android Project with existing source choose the path you created before by command line and that's it.
edit1: Make sure you locate true directory for 'android-sdk-mac_x86'
edit2:this is how you create Android project by using Terminal
/path/to/cordova-android/bin/create /path/to/my_new_cordova_project com.example.cordova_project_name CordovaProjectName
I had a similar problem. For me, Eclipse wouldn't respond when I clicked Finish when importing source from a phonegap project.
I later found that I had mentioned an incorrect path to the android-sdk.
Check if that is your problem.
If it is, here is how you change it:
In Eclipse IDE, click on the Window menu and then Preferences.
A pop-up will be opened.
On the left pane, click on Android (click on it, not on the + sign beside it).
In the field SDK Location, click Browse and point to the location of your android-sdk.
You are done!
Hope that helped.
EDIT:
I am using Eclipse Juno, but the options must hopefully be pretty much the same for other versions too. Please comment if this is incorrect.
I downloaded the "LocationAware.zip" from http://developer.android.com/training/basics/location/geocoding.html. How to open this project in Eclipse now?
I would like to open it in Eclipse and then hit run to see how to run this app in the Emulator.
(new to Android - so sorry if the question is too basic)
To run the project you mentioned in Eclipse, hit
- File->New->Project
- Choose "Android Project From Existing Code"
- Choose the root directory, hit finish.
Some extra steps you might need to take care after creating project (if there are errors)
1. Click Project->Clean (so that Resources "R" will be automatically generated)
2. If there are some XML errors, try to change Android Build Target (right click on project folder->Properties->Android)