2

As per this answer, I tried to add MoPub as a standard project to my Android project by using Build Path > Link Source. This put a mopub-sdk folder under my project folder, and now I can't delete it. I get the following error message:

An exception has been caught while processing the refactoring 'Delete'. Reason: parentPath must not be null

I actually added the MoPub SDK twice. The first time, I named it mopub-sdk, removed it from the Build Path, and saw that the folder in project explorer was still there, tried to delete it, and then got the error message.

The second time, I wanted to test if having removed the SDK from the Build Path caused the problem, so I tried to re-add as a Link Source, got a naming conflict error, and then named it mopub-sdc instead. Trying to delete from Eclipse's project explorer first still caused the error, only this time it included the options "Click 'Undo' to undo all successfully executed changes of the current refactoring" and "Click 'Abort' to abort the current refactoring."

Any ideas? It might be notable that both folders have [Ignored] next to them.

Community
  • 1
  • 1
user460847
  • 1,578
  • 6
  • 25
  • 43

3 Answers3

2

Still don't know what the problem was, but here's how I fixed it:

  1. Opened up .project in Notepad and deleted <linkedResources> (which contained both mopub-sdc and mopub-sdk).
  2. Restarted Eclipse.
  3. Deleted both folders through project explorer.
user460847
  • 1,578
  • 6
  • 25
  • 43
0

open .classpath with Notepad++ and delete linked resources like

yakup_y
  • 155
  • 2
  • 7
0

Another solution that doesn't require an eclipse restart.

Simply create the file where eclipse wants it, then refresh, delete the link how you normally would in the GUI and then you can delete the file you created.

thurst0n
  • 155
  • 1
  • 1
  • 12