Cocos2dx with Android Studio

  • Gurudath
    Likes 0

    Problem Description

    Hello,

    I am using Android studio to debug the code which is written in cocos2dx 3.11.1 version.  I have seen video tutorial which is uploaded by Sonar. its a really helpfull for me to learn. Thank you. 

    1. Is there any way to import c++ code in Android Studio IDE?
    2. Can we have breakpoint system to debug like what we usually do it in Xcode?

    Thanks

    Gurudtah

     

     

  • Sonar Systems admin
    Likes 0

    C++ code as in .h and .cpp files?

  • Gurudath
    Likes 0

    Yes.  .h & .cpp file

     

  • Sonar Systems admin
    Likes 0

    You can open C++ files normally and code in them.

  • Gurudath
    Likes 0

    Yeah. I can open c++ files in Xcode & write code. 

     

    But while testing for Android, i wanted to open c++ files in Android Studio. So that i can check  both Java & c++ code at once.

  • Sonar Systems admin
    Likes 0

    You should be able to open them in Android Studio.

  • Gurudath
    Likes 0

    Okay. 

     

    Am trying to import. Am missing something. Am not able to find out.

    Can you plz help me out with this?

  • Sonar Systems admin
    Likes 0

    What happens when you try to import the file?

  • Gurudath
    Likes 0

    Either I can import Root folder of cocos2dx project. At that time am not able to run the code.

     

    If i import project.android-studio folder.  Then i can run the code. I can see only mainfest,  jin & Java code folder. I cant see c++ files

  • Sonar Systems admin
    Likes 0

    Have you tried this video of ours https://www.youtube.com/watch?v=gdOkbXYsf04 ?

  • Gurudath
    Likes 0

    Yeah. I check the video before. 

    There we have opened it in different window. 

     

    Actually i wanted to try it in one window. So that i can keep breakpoint in c++ file and i can able to debug.

     

  • Sonar Systems admin
    Likes 0

    Don’t think it can be done like that, sorry.

Login to reply