The project was not created due to "Failed to delete" project / bin / classes / com ', "

I saw this error before, and I solved it earlier by simply clearing the project, but this time it just doesn't work. This error sometimes appears when I import a specific project from existing code.

Things I've tried so far:

  • Clean up the project (this fixes it long enough, so I can compile it, but then an error appears again, it becomes annoying to clean up the project every time I want to compile it)

  • Delete the bin folder manually and then clean the project (the same effect as the “clean” option, it fixed the problem for a minute)

I have done a lot of research on this, and everyone says that cleaning up a project should fix it, but it is not.

EDIT: some additional information:

  • I am using the latest version of eclipse

  • My workspace is in a Dropbox sync folder because I use it between two computers (maybe the problem is there?)

  • When I click on the console tab, another error appears: "cannot write file cache file jarlist C: / users / user / dropbox / android development / workspace / project / bin / jarlist.cache"

+6
source share
3 answers

I found where the problem is. This is because I have a workspace in the dropbox folder. This is a shame because I really want to synchronize the workspace between computers. The error disappears when I “pause” the sysncing Dropbox and returns when I start it again.

+4
source

It can also be a rights issue. I also run my Android project in the Dropbox folder - very useful, but stopping Dropbox did not solve it.

If you are on Linux, you can cd in the right folder to execute:

 sudo chown your_user:your_group -R ./ sudo chmod u+w -R ./ 

In the windows, simply check (right-click on the project folder → Properties) that your user and group have read and write permissions in the project folder and its subfolders .

Good luck

0
source

Additional information on the topic:

As an OP, I also had the same problem, class files were not created because bin subfolders were not deleted. I have a workspace on a drive connected to the network (at work) with the offline function, the files are stored locally and synchronized when I am connected to the network or connected to my work. Due to synchronization problems, Eclipse cannot remove bin-subfolders, and as a result, class files are not created. Cleaning does not fix it, but the error messages in the “Problems” items are in the right direction.

My solution was to eliminate all files and folders with "syncproblems" (in the center of synchronization for my windows are "offline files"). I am on a machine with Windows 10, and the standalone function is (I think) a solution for the microsoft network. My first post, so I'm sorry if it is inadequate in any way. Hope this helps someone

0
source

Source: https://habr.com/ru/post/959117/


All Articles