Reputation: 3887
I closed Eclipse and then re-opened it and now I've got all kind of issues with BaseGameUtils.
I really don't understand as there were no errors when I closed Eclipse and I've not made any changes to anything.
I've tried cleaning and closing Eclipse and re-opening it again but have had no joy.
I've also tried removing Eclipse/Android SDK and downloading it and installing it again / updating and then importing BaseGameUtils again but I still get the same problem.
I'm simply trying to follow the Offical Docs.
Would be really grateful if someone can give me some clue as to how I may fix this as my project is currently useless with these errors!
This is the error I get in my BaseGameUtils:
Any suggestions welcome!
Upvotes: 1
Views: 795
Reputation: 3887
I have absolutely no idea why this occurred in the first place (I'm guessing Eclipse is just a bit odd), however the reason, after re-installing Eclipse/Android-IDE that I was getting errors when importing BaseGameUtils was because I also then needed to go into it's properties and re-link it to the google-play-services_lib.
Like so:
Once I linked that the errors disappeared and I was also able to re-import my project without errors.
Hope this helps if anyone has similar issues in the future
Upvotes: 3
Reputation: 111142
It looks like you have your Source folder set to src
but the code source folder is actually using src/main
.
Open the Properties for the project and select 'Java Build Path'. Choose the 'Source' tab. Remove the xxxx/src source folder and add xxxx/src/main.
Upvotes: 1