build_native.py works no more

Cocos2d-JS v3
  • Vineet
    Likes 0

    Problem Description

    Hi Guys,

    I have been following your tutorials which are great. A few days back I followed the course and by watching it I installed cocos2d-x and made new project. Everything worked.

    Now yesterday I re-installed my OS which was same previously - Windows 8 and repeated the same process of installing cocos2d-x. 
     
    I can create directory of my game but it gives me error when I try to run - build_native.py.
    How can I do that again. I tried – cocos compile -p android --ap android-17.
     
    Everything needed is there and configured – SDK, NDK, Apache Ant, JDK and Python.
     
  • Sonar Systems admin
    Likes 0

    The use of the Cocos Console is now compulsory, luckily we have a tutorial series on that

     

    http://www.sonarlearning.co.uk/coursepage.php?topic=game&course=cocos-console

  • Minh Kokox
    Likes 0

    It’s the same! This is my problem too.

    I uesed ‘cocos console’ and ‘build_native.py’ that have the same error.

    Help me!

  • Vineet
    Likes 1

    Minh,​

    You should not use – build_native.py. To compile for android, use – cocos.py compile -p android. 

    This will compile your project.


    This reply has been verified.
  • Minh Kokox
    Likes 2

    Thanks!

  • Sonar Systems admin
    Likes 1

    Great to see the community is helping each other.

Login to reply