Cocoside to export Android APK notes

Source: Internet
Author: User

Recently in the use of cocoside to develop new games, the overall feeling is very good. Support for breakpoint debugging, real machine debugging, debugging variable information is also more than a lot of vs LUA plug-ins rich, and more than some specialized LUA debugging tools to facilitate. And there is a certain grammatical error function, you can pre-check some of the low-level errors. There is a little bit uncomfortable place is: code to complete the reaction is a bit slow and card, many times the smart tips are all 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. Use the command line of Cocos2d-console (under the Tools folder of the engine directory) to export, which is OK, but you need to configure a lot of things.

The setup.py in the running engine directory can automatically add some environment variables, but some of them are not, and you can check them by yourself when encountering errors.


The environment variables that need to be added to the path are:

(Android SDK directory)

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

(Python directory)
C:\Python27;

(Ant directory for automatic packaging)
E:\MyProj\apache-ant-1.9.4\bin;

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

(Java Runtime Environment directory)
C:\Program Files (x86) \java\jre8\bin

(Cocos the directory where the command is located, run setup.py can be added automatically)
E:\MyProj\cocos2d-x-3.3beta0\tools\cocos2d-console\bin


Some other environment variables (items such as Android_sdk_root are created in the environment variable configuration, and 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

Is added, you can run it at the command line

Cocos run-p Android or Cocos deploy-p Android to run or release apk.

Specific cocos parameters can be entered Cocos--help or read the Readme under Engine directory.


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.