All java codes are put into a separate project, so you should import sample codes and the engine’s java codes into eclipse.
I’m trying to solve this also. I fixed it by copying the files like in 2.02. However, I don’t want to have to remember to do that for each new release now. I don’t quite understand what needs to be imported and where it should be imported in eclipse to get this to work. I imported the “sample” HelloCpp, but it has the same issue…
What exactly should I be importing? It seems that the goal was to just import the java files once for all projects in eclipse, but I don’t know how to do that… Would someone have a screenshot of eclipse showing where the files should be?
Awesome! Thanks man, worked like a charm. I knew it was something like that.
As for the @Override issue, I fixed it by right-click Project~~>Properties~~>Java Compiler->Check “Enable project specific settings” and make sure the compiler compliance level is set to 1.6. Once I did that it stopped complaining about them.
Luis Mendes wrote:
In Eclipse:
>
Import Existent Android Code into Workspace
Select source location from cocos2dxplatformandroidjava
You should now have a new project, probably will be called java. (You can refactor > rename to a better name).
This new project was not compiling, had to comment out plenty of overrides, I think there was a cleaner solution in the past. Someone ?
>
[…]
>
to:
>
[…]
>
Now add this project as dependency to your project. Project properties > Java Build Path > Add
>
You should be able to run your project now.