溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Cocos2d-x android can't resolved coscos2dx library

發(fā)布時(shí)間:2020-06-12 02:58:56 來源:網(wǎng)絡(luò) 閱讀:343 作者:拳四郎 欄目:游戲開發(fā)

Cocos2d-x的配置可以參考:http://www.cnblogs.com/TerryBlog/archive/2012/10/27/2742501.html


Cocos2d-x android can't resolved coscos2dx library是在創(chuàng)建cocos2d-x andrid項(xiàng)目的時(shí)候出現(xiàn)的bug,stackoverflow的解決方法:

In cocos2d-x 2.0.3 ...Cocos2d-x Lib java files has been considered as a different project only So import that project in the eclipse

Lets make it Simple

  1. First Import the project in eclipse from this path - cocos2d-2.0-x-2.0.3/cocos2dx/platform/android/java

You will see libcocos2dx project in eclipse ...Keep this project open always otherwise your projects will give error on the syntax of library

  1. Run create-android-project

  2. Now Import the project which you have created and just Run (If you know the concept of isLibrary then that's how they are maintaining it now ..)

Also additional information to run build-native.sh from eclipse only , Right Click Project ->C/C++ Build Uncheck Use Default Build COmmand and add following bash ${workspace_loc:/YourProjName}/build_native.sh NDK_DEBUG=1 V=1

Good Luck ..If any question please feel free to ask

就是先把cocos2d-2.0-x-2.0.3/cocos2dx/platform/android/java里面的項(xiàng)目加載進(jìn)來,然后就可以了。

之后右擊項(xiàng)目運(yùn)行,在手機(jī)上就可以看到cocos的啟動(dòng)畫面了。

Cocos2d-x android can't resolved coscos2dx library

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI