安裝的版本:
cocos v3.10
android studio 1.5.1
先選擇Run->Edit Configurations

再選擇專案,這裡的範例是mytest4

同樣的畫面下方注意到Before launch: 這個區塊有個+號,按下去

選第一個Run External tool

各欄位填入
Name: Cocos compile
Program: cocos
Parameters: compile -p android —no-apk —android-studio
Working directory: $ProjectFileDir$
然後按下ok就完成了。但這裡還有個地方要注意,要把新增的Cocos compile移到
Gradle-aware Make的上方,就像第三張圖那樣,編譯時就會先跑c++,再包成apk。
沒有留言:
張貼留言