Compiling - Can't find right android-platform for project

  • warning717
    Likes 0

    Problem Description

    Running the command cocos run -p android doesnt seem to work.

    Can't find right android-platform for project : "/Users/User/Desktop/CocosProject/proj.android". The android-platform should be equal/larger than 10

  • Sonar Systems admin
    Likes 0

    OH, one of my colleagues had that issue, I will ask him to post here later today.

  • warning717
    Likes 0

    That would be great :D Thank you

  • Sonar Systems admin
    Likes 0

    Hello

     

    Import the project into eclipse, if you still have the same issue then right click your project, go to properties and open the section marked as Android.

     

    Under Project Build Target select the Android target like so

  • warning717
    Likes 1

    Ok that helped but now Eclipse is giving me some other errors.
    libcocos2dx] Unable to resolve target 'android-10'
    [2015-02-05 16:38:38 - MyCppGame] Unable to resolve target 'android-10'

    and about 5 of these

    [2015-02-05 16:42:47 - MyCppGame] Application package 'AndroidManifest.xml' must have a minimum of 2 segments.

    *UPDATE*

    Solved!
    I went into the android manifest and under package which was originally “android” switched it to org.cocos2dx.cpp which I was able to run on my android device

    Thanks for the help! :D


  • Sonar Systems admin
    Likes 1

    Great to hear that you was able to solve it :D

    If your done with this question then could you mark it solved please, so others know they can get the answer from here.

Login to reply