Something wrong in building a android project

I was using cocos2d-2.0-x-2.0.3 under Eclipse 4.2.1 + ADT_20.0.3 + CDT(8.1.0)+NDK(r8b)+android sdk 4.0.3, and following the tutorial create a test sample of android. I got an error in eclipse which is said: “The import org.cocos2dx.lib cannot be resolved”. What is the matter? any recommendation is appreciated!


QQ20121007-2.png (80.5 KB)

Kudoo Cheng wrote:

I was using cocos2d-2.0-x-2.0.3 under Eclipse 4.2.1 + ADT_20.0.3 + CDT(8.1.0)+NDK(r8b)+android sdk 4.0.3, and following the tutorial create a test sample of android. I got an error in eclipse which is said: “The import org.cocos2dx.lib cannot be resolved”. What is the matter? any recommendation is appreciated!

i have same error
i find solution
cocos2d-x 2.0.3 is not make “org.cocos2dx.lib”
“org.cocos2dx.lib” is null
so i build cocos2d-x 2.0.2 and “org.cocos2dx.lib” is copy
and cocos2d-x 2.0.3 paste to “org.cocos2dx.lib”

sorry my flimflam english

Just in case people are still struggling,
Right click on your project > Properties > Java build path > Source > Link source
In the “Linked folder location” textbox, type “…………/cocos2dx/platform/android/java/src” - (specify the path)
Give it a completely new name.

1 Like

Above "love2script12"s suggestion worked for me.
Thanks.