2013年8月6日星期二

Cocos2dxActivity cannot be resolved to a type Solution

 

Problem Description :

 

build_native.sh runs successfully , it will project into eclipse will appear in this issue , suggesting that no following documents :

 
  
import org.cocos2dx.lib.Cocos2dxActivity; 
 
 

Solution :

 

1. simply cocos2d-x engine 's root directory cocos2dx/platform/android/java/src folder folders copied to the project the src package can be.

 

2. cocos2dx/platform/android/java can also import this project generates a jar file is added to the project's libs folder can be.

 

Both methods generate apk in the final copy will be dependent on them .

没有评论:

发表评论