Compiling cocos2dx project in android studio with latest android sdk

Compiling cocos2dx project in android studio with latest android sdk
0

#1

Anybody here who successfully build the apk in android studio on windows system with latest android sdk? If yes please share the solution or make a tutorial or video tutorial , because this issue is not explained very clean.


#2

Did you go through our install doc? https://docs.cocos2d-x.org/cocos2d-x/en/installation/Android-Studio.html

Did those steps work?

Does compiling a fresh ‘cocos new’ project work?

R16+ should be what you are using.


#3

I downloaded cocos2dx 3.17.1 and made a new project after creating project i opened project on latest android studio. But not able to compile on android studio and project also not properly imported in android studio may be because of cocos compile command is not working in new android sdk.


#4

If you are running Android Studio then you don’t use cocos compile ....

How did you get Cocos2d-x? Our GitHub repo or our .zip from our website?

Did you run download-deps.py?


#5

Zip from website.Getting error when running download-deps.py command.


#6

You must have some sort of python issue or network connectivity issue?

Are you using Python 2.7?


#7

Python version is 2.7.6 and internet connectivity is also good.


#8

I’d try again later. I’ve tested from 2 machines in different parts of the world and I can download just fine. Perhaps there is an issue from your ISP on.

Edit: Did you go through our install doc? https://docs.cocos2d-x.org/cocos2d-x/en/installation/Android-Studio.html


#9

May be,i will try with different ISP.


#10

what is your error problem/message when build?
And it seems your python is V3, check it with python --version