COCOS2DX An Zuojin Machine Debugging Problem Summary

Source: Internet
Author: User

Cocos Compile compilation apk problem summary: 1,DX compile error, there is not enough space

Antbuild: [DX] error:could not create the Java Virtual machine.
Antbuild: [DX] ERROR:A fatal exception has occurred. Program would exit.
[DX] Error occurred during initialization of VM
[DX] Could not reserve enough space for object heap
This problem, open the Dx.bat file in Android-sdks\platform-tools,
Set defaultxmx=-xmx1024m
Change to
Set defaultxmx=-xmx512m

2. Resolve Eclipse cannot open "Failed to load the JNI shared library"

This is due to a problem with the JDK configuration error

Generally speaking, the new purchase notebook will be preloaded with 64-bit Windows system, while downloading software on the Internet, 32 will appear first in the page (this is the case now, but I think the next 64 will become more and more popular).

If you are a 64-bit system, but the 32-bit JDK is installed, it will cause the above situation.

The solution is as follows:

    1. Uninstall the 32-bit JDK that was originally installed, and then install the 64-bit JDK into your computer.

    2. Re-modify both the path and CLASSPATH environment variables. Because of the 64 system, 32-bit software is installed back into the Program Files folder, 64-bit software will be installed into the Program Files folder, when you installed 32JDK, you set the environment variable path of course will include "Program Files" (* 86) ", and then the JDK has been transferred to" program Files ", modified to come.

    3. Note that you installed the JDK version number two times, not necessarily the same, because the installation will be based on your version number to build the JDK folder, if the version number two times, in the environment variable also to be modified

3. Update Android 4.4.2 Error: "Https://dl-ssl.google.com refused" exception

"Https://dl-ssl.google.com refused" error when removing SDK updates

When you eliminate an SDK update, you may receive an error like this:
Download interrupted:hostname in certificate didn ' t match: <dl-ssl.google.com>! = <www.google.com>
Download Interrupted:connection to Https://dl-ssl.google.com refused
Done. Nothing is installed.

The workaround is to modify the https://to http://
The modification method is: for example, in the Android SDK manager->tools-options ... Options interface,
Check "Force https://... sources to be fetched using http://..."!

If you have any errors, you can add the following lines in the file (C:\Windows\System32\drivers\etc\hosts):
203.208.46.146 www.google.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

4. An Zuojin Machine Commissioning

Install the phone driver, with 360 mobile phone assistant, Eclipse---run Select the real machine

http://blog.csdn.net/blizmax6/article/details/7201242

5. Resolution adaptation issues Good article:

Http://www.zaojiahua.com/adaptation.html

http://blog.csdn.net/xiaominghimi/article/details/8918235

COCOS2DX An Zuojin Machine Debugging Problem Summary

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.