Cocoside to export Android APK notes

Source: Internet
Author: User
Tags lua

Recently in the use of cocoside to develop new games, the overall feeling is very good. Support for breakpoint debugging, real machine debugging, debugging time variable information is also more than a lot of vs Lua plugin rich. It is also easier to use than some specialized LUA debugging tools. And there is a certain grammatical error function. Be able to check out some low-level errors beforehand. There is a little bit of discomfort is: the code to complete the reaction is a bit slow and card, very many times the smart tips are hand-finished, this is not comparable with Va.

I ran into some difficulties when I used cocoside to export my Android apk.

1, when using the IDE export (right-click Cocos Tools---Public package) always prompt the error, unable to find the Android-19 SDK, and this thing is really there.

2, instead of Cocos2d-console (under the Tools folder of the engine folder) to export the command line, this is able to, just need to configure a lot of things.

The setup.py under the execution Engine folder can voluntarily add some environment variables, but some of them are not, and can be checked by themselves against errors.


Required to add to the environment variable path is:

(Android SDK folder)

E:\MyProj\adt-bundle-windows-x86\sdk\platform-tools;
E:\MyProj\adt-bundle-windows-x86\sdk\tools;

(Python folder)
C:\Python27;

(Ant folder.) For your own active packaging)
E:\MyProj\apache-ant-1.9.4\bin;

(NDK folder)
E:\MyProj\android-ndk-r9d;

(Java Execution Environment folder)
C:\Program Files (x86) \java\jre8\bin

(Cocos the folder where this command is located.) Executive setup.py can voluntarily join)
E:\MyProj\cocos2d-x-3.3beta0\tools\cocos2d-console\bin


Other environment variables, such as Android_sdk_root, are created in the environment variable configuration. Then the value is E:\MYPROJ\ADT-BUNDLE-WINDOWS-X86\SDK):

Android_sdk_root=e:\myproj\adt-bundle-windows-x86\sdk
ant_root=e:\myproj\apache-ant-1.9.4
Cocos_console_root=e:\myproj\cocos2d-x-3.3beta0\tools\cocos2d-console\bin
ndk_root=e:\myproj\android-ndk-r9d

Can be executed at the command line after it has been added.

Cocos run-p Android or Cocos deploy-p Android to perform or publish apk.

Detailed cocos can be entered Cocos--help or read the Readme under Engine folder.


Cocoside to export Android APK notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.