I am trying to create a new java project in my workspace. But i am getting the following Error:
"Overlaps the location of other project"
My current projects in:
Documents/workspace/Folder/{projects(About 10 Projects)}
If i create a new project from Eclipse, the new projects are coming under:
Documents/workspace/{New Project}
I have tried to the following steps to resolve this mentioned in other posts in stackoverflow.com:
Eclipse: Error ".. overlaps the location of another project.." when trying to create new project
But i am not able to solve this. Can anyone help please?
Ok, I fought this issue for a day and feel quite humble when I finally read all the post and figured out a good solution. This should be added to an Eclipse ten commandments... Thou shalt separate your workspace from your code and never the two shall meet. In that create the folder structure something like this:
C:\workspace\training\
C:\training\maven102-section1-initial-master\...
When you open Eclipse, point your Work space to the "c:\workspace\training" area. And for all your code, keep it in the "c:\training\maven102..." area.
My issue was having EVERYTHING ALL in the same folder, like a big old hoarder... and that does not work out either. Enjoy!
Related
I am following this tutorial:
https://developer.android.com/google/play/billing/billing_integrate.html#billing-permission
No InAppBillingActivity file is generating. I'm not sure why. I checked to make sure everything is placed correctly but no luck. Here is what my folder structure looks like:
Click this for picture
Now I know there are similar questions like this but none of them were able to solve my problem. I have already imported googles billing library as well. No file generates when I run / build the app.
The problem is that the docs are not very accurate in specifying where it is that you will find the java file that should be in the gen folder. I had faced the same problem and had broken my head over it, until I found that the .java file was infact generated and it was in the path :
\app\build\generated\source\aidl\debug\com\android\vending\billing\IInAppBillingService.java
Its not a headache issue and your code runs smoothly itself without any interventions required. Hope this helps!
In android studio double click on your package name:
click in New and then on AIDL
Hope it helps
Its usually generated but not put where the tutorial tells you. If you do a Ctrl+N and type in the class name in intelliJ you may be able to find it
Related Questions:
Intellij IDEA doesn't detect changes
How to clean project cache in Intellij idea like Eclipse's clean?
The answers does not seem to work.
File -> Synchronize, VCS -> Refresh File Status, File -> Invalidate Cache seem to be good solutions, but they do not work at all.
Also one of the file is greyed out just yesterday. But I am seeing this problem for two weeks now.
I have rebuild the project. Still it does not work.
Please help. I am using intelliJ version.
Should I delete .IntelliJIdea13>system>log?
Please look at this link too:
https://github.com/pantsbuild/pants/issues/564
I did change the folder in which my project file exists, and created a new folder with the same name and update from the SVN
"What seems to be happening is that when you don't use the --idea-project-dir override, a new directory with the name of the project is created.
./pants goal idea ... --idea-project-name=zun123463
Generated IntelliJ project in /Users/zundel/Development/java/.pants.d/idea/idea/IdeaGen/zun123463
When you use the --idea-project-dir flag, you don't get a separate directory to hold the .iml files:
./pants goal idea ... --idea-project-name=zun123463 --idea-project-dir=squarepants/idea
Generated IntelliJ project in /Users/zundel/squarepants/idea/
I'm not sure what is the best course of action. On the one hand, the current behavior gives the user exactly what they ask for so maybe we should leave --idea-project-dir alone. On the other hand, it doesn't act the same as if you don't specify the flag and sets you up for failure. I'm going to propose a patch that tacks on --idea-project-name onto the end of --idea-project-dir.
"
is this the problem?
How do I fix it?
Please help
I had this problem last night and it was a pain. My solution was to delete the .idea folder, invalidate caches, and reimport the project. I thought the problem was related to the scala plugin, but I guess its not.
This problem can be solved by deleting logs, caches, indexes and temp files at the IntelliJIdea13/system folder
I hope my question will be clear enough as I am not used to Eclipse environment.
My goal is to create a project in Eclipse with an already existing EMX file. I gather that file from a Git repository.
And I would like to create a command line (or a script, or anything I can run automatically from remote) that imports that EMX file into Eclipse, so I can use another script (already created) to work with this EMX.
My problem is that I don't know how to create this script or command line.
I've tried solutions found here at StackOverflow, without success. Maybe I'm just bad :p
As I am beginner in Eclipse stuff, if someone has a link to a clear tutorial or working example, it would be very nice.
Note: I just have the EMX file (no .project or whatever). So I guess I need to create a project with this file, and not just import an existing project.
Thank you very much for your help :)
Laurent
I finally managed to do what I wanted by creating a plugin which imports projects from a given path into my current workspace.
Main part of the code is from: http://code.google.com/p/headlesseclipse/source/browse/branches/JUnit/com.ind.eclipse.headlesseclipse/src/com/ind/eclipse/headlessworkspace/HeadlessProjectImport.java?r=88
I did not find any way to do this outside the plugin. Grovvy solution was giving plenty of errors and without CDT, the first simple solution I looked for was not available.
I am working on the Bluetooth Chat from the Android Developer site in
Eclipse IDE. I am using Android 2.1 and changed the Action Bar to
display Toast messages instead and am only working with Secure
connections.
I have three classes under the same package called BluetoothChat,
BluetoothChatService, and DeviceListActivity and the project name is
BluetoothCh.
Two of the files had errors that I fixed. They were saved and are
clear of the red x that previously marked both .java files. All of
the other files are clear of errors as well. However, the main
Android project folder still contains a red x, and Eclipse is not
allowing a run or debug of the application because of errors in
the project.
Does anyone have any ideas how to solve this? Any advice is very much
appreciated! Thank you!
Refresh the project then clean the project.
Delete the error in the "Problems" tab.
Right click the project->Android->Clean project properties (or whatever it is).
Clean the project and rebuild it see if the X mark still persists.
"When I clean the project it now gives me errors that R cannot be resolved as a variable. Where should I go from here?"
It sounds like you have an error in your code somewhere. You need to find out where the error is (what file and line) and fix it. This can be done with the problems tab in eclipse. It should tell you the description, file, path, line, and type of error you are getting.
I keep getting this when trying to start a new project
ERROR: Unable to open class file C:\Users\Levi\Desktop\Android\workspace\Droid1\gen\com\androidbook\droid1\R.java: No such file or directory
I tried changing preferences to alter build path to project, but it still wouldnt work,,,
Is subfolder on desktop a bad place to install Eclipse?
Clean works sometimes and should be tried. I also find that blowing away the gen directory and refreshing will cause it be to rebuilt. Try that as well.
However, sometimes even that doesn't work and I've been forced to remove the project from Eclipse and then re-import it. This, unfortunately, works for me every time if the above has not.
Good luck.
Im also getting that error, running a Project->Clean in Eclipse helps for me.
Project->Clean should certainly fix this (unless your resources won't compile for some seperate reason).
I remember that the first time I ran Eclipse (in mid 2009, can't remember if it was Galileo or Ganymede or whatever) on Windows Vista, it presented several problems that were eventually traced to Eclipse itself being in a directory whose path contained a space...
Usually, the above tips (refresh, clean) work for me. But lately I had a very persistant instance of this error, which was caused by something else:
One of the layout .xml files in res/layout contained a reference to a custom view (org.company.project1.MyView). However, I had changed the package path (org.company.project2.MyView), so the reference had become invalid.
Thus, if everything fails try browsing your layout .xml files for invalid custom element definitions.
Cheers
after spending hours trying to ultimatly discover the issue behind the Class Issue not being found, resolved,or directory not there issue....
sometimes yes the issue is due to a bad binary or xml... as sometime a clean will do the trick or a xml edit will solve the day.. when all else fails.... this may do it..
"create a new workspace"
go into the workspace.... and then
Switch to your old workspace... in the newly formed workspace...
this was my silver bullet. so frustrating to not have a solid answer.
using Version: Helios Service Release 2
Build id: 20110218-0911