cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.18k stars 7.05k forks source link

Unable to build android-studio module using Android Studio 2.3 #17636

Closed itsabhiaryan closed 7 years ago

itsabhiaryan commented 7 years ago

Steps to Reproduce:

  1. After setting all requirements whenever i run Android Studio module by Android Studio 2.3

On mac working fine but on window i am not able to build. I tried with both version v3 branch and v3.15 branch.

Here is the error log :

rh101 commented 7 years ago

Check this out: http://stackoverflow.com/questions/12598933/ndk-build-createprocess-make-e-87-the-parameter-is-incorrect

That solved my issue, because I was having the same error come up: "make (e=87): The parameter is incorrect."

itsabhiaryan commented 7 years ago

Thanks it was my mistake.

By mistake I kept same flag LOCAL_SHORT_COMMANDS := true in both file Android.mk and in Application.mk

But flag LOCAL_SHORT_COMMANDS := true need to be set in Android.mk and flag APP_SHORT_COMMANDS := true in Application.mk

prasannaboppe commented 7 years ago

I created Sample game using Cocos2dx 3.15 and it's running fine in studio. I'm able to compile, run and debug as well. But my problem is after I copied all my classes, resources from my other project (it's running fine another system) and updated Android.mk file according to that. Now I'm not able to build from Android Studio. and in External Build Files Application.mk file also not showing. screenshot from 2017-05-13 17-29-04

itsabhiaryan commented 7 years ago

@prasannaboppe what is the error output on Gradle Console ?

prasannaboppe commented 7 years ago

it's same as your issue that posted

prasannaboppe commented 7 years ago

If I'm copying classes one by one it's building.. but I have 200 classes around.. if I copy all at once it's not building

prasannaboppe commented 7 years ago

I observed one thing.. If I add some 50 classes.. it's starts building.. If add all 200 classes it's not even starting build.. and showing the error immediately. cocos2dx ndk build with arguments {NDK_PROJECT_PATH=null

ghost commented 7 years ago

@prasannaboppe have you sove ?