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:
Uninstall the 32-bit JDK that was originally installed, and then install the 64-bit JDK into your computer.
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.
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