Build dynamic library for project - Cocos2dx

  • Anibalecter
    Likes 0

    Problem Description

    Im trying to create and compile a Cocos2dx project for Android, and i getting this error:

     

    File "./build_native.py", line 43, in <module>

        build(opts.build_mode)

      File "./build_native.py", line 28, in build

        raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!")

    Exception: Build dynamic library for project fails!

  • Sonar Systems admin
    Likes 0

    Is this a fresh project?

  • Anibalecter
    Likes 0

    Yes. I’ve the same setup in my Laptop and its working fine.

  • Sonar Systems admin
    Likes 0

    What Cocos2d-x version are you using?

  • Anibalecter
    Likes 0

    i‘m Cocos2dx v3.6

  • Sonar Systems admin
    Likes 0

    Do you have any space in the file path?

  • Anibalecter
    Likes 0

    No, and it's weird because I worked well a few days ago.

    I read that it is an error in the build_native.py in proj.android, I change the build_native.py by a previous version and neither worked.

    I have seen that has happened to several people but I have not read an actual solution.

  • Sonar Systems admin
    Likes 0

    Are you using Windows or Mac?

  • Anibalecter
    Likes 0

    Im using OSX Yosemite

  • Sonar Systems admin
    Likes 0

    What version are you using for everything else like NDK etc

  • Anibalecter
    Likes 0

    i’m using: ndk-r10e / apache-ant-1.9.4 / all versions of android sdk including M Preview. 

  • Sonar Systems admin
    Likes 0

    Try an older Cocos2d-x

Login to reply