This is my first technical article. Here I will share my deployment experience. Thank you for your reference.
I simply wrote my deployment steps and only referred to the official readme.
Environment:
Win7 64-bit
1. Open the cmd Console
2. Go to the cocos2d-x Engine Directory and type setup. py (the premise is to configure the python environment variables)
Check whether the environment variables of android, ndk, and ant (build tool) are configured.
3. Add the cocos bin directory to the environment variable path.
Example F: \ MyWork \ tools \ 2dx \ cocos2d-x-3.0rc0 \ tools \ cocos2d-console \ bin
4. Restart the terminal or the computer
Make environment variables take effect
5. Create a project (explained in brackets) and type
For example, cocos new hello (project name)-p com. jin. hello (package name)-l cpp (project type)-d F: \ MyWork \ cocos2dx_workspace (Project Storage path)
6. Compile to the android platform
Go to the project directory in the console, for example, F: \ MyWork \ cocos2dx_workspace \ hello.
7. Type cocos run-p android
Wait, and then you can install it on the simulator or on the real machine.
8. The generated apk package is in the bin under the root directory of the project.
Finally, attach the great god sub-mountain recording related video, address: http:// I .youku.com/u/UMTQzODIyNzQ0NA== also hope you can be familiar with 2dx 3.0rc project deployment as soon as possible.