Running android project Cocos2d-x-3.5

  • jojizaidi
    Likes 0

    Problem Description

    I downloaded coco2dx-3.5 and it’s working fine for my iOS projects. 

    Now I want to run it on android. I’ve downloaded the new ndk that is version 10e and provided its path in the .bash_profile file.

    I did a cocos compile on my project and then ran it on my device. The game crashes on startup. I even tried this with a new empty HelloWorld project and it crashes as well. 

    I have no idea how to fix it. Please any ideas.

  • Sonar Systems admin
    Likes 0

    How did you run it on your device

     

  • jojizaidi
    Likes 0

    I got it working. Had to download the new apache ant too. Missed out on that part, it wasn’t a requirement for previous versions of Cocos before v3.x. 

    What do you guys suggest to use to read logs on android?

    I run the game using cocos run -p android.

  • Sonar Systems admin
    Likes 0

    Use Eclipse to run your game.

  • barabasandras1
    Likes 0

    - Download Java JDK 1.7 64 bit if you have 64 bit OS (there were some issues below and above that version) and set your JAVA_HOME env. variable.
    - Download MinGW Installer and install the basic package it offers you.
    - Download Python 2.7.
    - Download Apache Ant.
    - Download Android SDK standalone pack.
    - Download Android NDK 10.
    - Use an Eclipse (Visual Studio 2k13 works fine as well)
    - In Eclipse install ADT plugin and then install Android API level 10 to be sure.

    When you import your project library into Eclipse, make sure it will build first and then you can launch your application.


    This reply has been verified.
  • Sonar Systems admin
    Likes 0

    Thanks @barabasandras1

Login to reply