Package to APK: 10 is not a valid android target platform

I completed the settings Android SDK and NDK, ANT.
I install ADT in code ide.

create project test.
and package to APK.

but failed.
error message: 10 is not a valid android target platform.

I install sdk version 10, 14, 15, 20, 7, 8.

I tested Windows and Mac.

why not build android package?

This above doesnot matter…

Since android-10 is 2.3.3 then it should definitely work.
Also, are you sure that your sdk for this is installed properly. I mean just open SDK manager and check whether there is anything remaining to be installed in android 10(v2.3.3) column.

Also, check whether the path for cocos2d-x inside cocosIDE is given correct.
It should be cocos2d-x 3.x

And ya, it is valid platform… Don’t worry about… Also, I would suggest you to use latest cocosIDE incase there is any bug in the previous one…

It is thanks to comments

I test on cocos2d-x 3.3beta0.

This bug is a 3.3beta0 bug is suspected.

http://cdn.cocos2d-x.org/cocos2d-x-3.2.zip

v3.2 is succeeded build.

Thanks.

Oh nice… even I use cocos2d-x v3.2

Hi, @slackmoehrle @pandamicro
Can you please see to this post… pbs0512 is having trouble with cocos2d-x v3.3 beta0 and hope this issue is in your knowledge :smile:

@pbs0512 It’s a strange issue, normally Code IDE should be able to select android platform, and as you have installed 10, 14, 15, 20 … it shouldn’t act that way. Have you selected the platform manually in Code IDE ?

@honghui_zhang I’m sure you can explain better than me.

Thanks for the notif

@pandamicro said
Have you selected the platform manually in Code IDE ?

I did not selected the platform manually.

I first test cocos2d-x 3.3beta0

-------Test 3.3beta0--------
create new project.

In the image above, “cocos2dx 3.3 not found”.
“Package to APK” build and error message “10 is not a valid android target platform.”
So, Library change and Build.

“cocos2dx 3.3 not found” remove.


“cocos2dx” 3.2 Add library.
Build project but same error message “10 is not a valid android target platform.”


-------Test cocos2d-x 3.2--------
create new project.

Next, create a new project, and v3.2 is succeeded build.

Sorry that I’m not very familiar with Code IDE, I will ask some help for you.

@honghui_zhang @jialin_he Please take a look at this thread

Cocos Code IDE rc2 can’t support cocos2d-x 3.3, please reference to http://www.cocos2d-x.org/wiki/Cocos_Code_IDE and download right version.

@honghui_zhang

Hi I was using cocosIDE rc2 and from HELP->check for updates.
It doesnot show any update although there are 2 latest version available after this version that I use

Thanks :smile:

We found that some features are lost when update IDE by auto-update, haven’t found the reason.

Please download the full package if you want to upgrade the IDE.
I’m terribly sorry for the inconvenience.