zoukankan      html  css  js  c++  java
  • cocos2dx 安卓真机调试问题汇总

    cocos compile编译apk问题汇总:

    1,dx编译报错,没有足够的空间

    ANTBUILD : [dx] error : Could not create the Java Virtual Machine. 
    ANTBUILD : [dx] error : A fatal exception has occurred. Program will exit. 
    [dx] Error occurred during initialization of VM 
    [dx] Could not reserve enough space for object heap 
    這問題,打開 android-sdksplatform-tools 目錄中的 dx.bat 檔案,將 
    set defaultXmx=-Xmx1024M 
    改為 
    set defaultXmx=-Xmx512M

    2.解决Eclipse无法打开“Failed to load the JNI shared library”

    这是因为JDK配置错误所导致的现象

    一般说来,新购笔记本会预装64位的windows系统,而在网上下载软件时,32位会优先出现在页面中(现在来说是这个情况,但我认为未来64位会越来越普及)。

    如果你是64位的系统,却安装了32位的JDK,就会导致上面的情况。

    解决办法如下:

    1. 卸载掉原来安装的32位的JDK,然后安装64位的JDK到电脑中。

    2. 重新修改path 和 classpath 两个环境变量。因为在64系统当中,32位软件回安装到program files (*86)文件夹,64位软件会安装到program files 文件夹,当你先前安装32JDK时,你设置的环境变量路径当中当然会包括“program files (*86)”,而这时JDK已经转移到“program files”中了,修改过来即可。

    3. 注意你两次安装的JDK版本号,不一定相同,因为安装时会根据你的版本号建立JDK文件夹,如果两次的版本号不同,在环境变量里也要修改

    3.更新android 4.4.2 报错:“https://dl-ssl.google.com refused”异常

    消除SDK更新时的“https://dl-ssl.google.com refused”错误

    消除SDK更新时,有可能会出现这样的错误:
    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 was installed.

    解决办法是:将https://修改为http://
    修改方法是:如下图,在Android SDK Manager->Tools-Options...选项界面,
    将“Force https://… sources to be fetched using http://…”勾选!

    如果还有错,可以在文件(C:WindowsSystem32driversetchosts)中,添加如下几行:
    203.208.46.146 www.google.com
    203.208.46.146 dl.google.com 
    203.208.46.146 dl-ssl.google.com

    4.  安卓真机调试

    安装手机驱动,用360手机助手即可,eclipse -> run 选择真机

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

    5.分辨率适配问题好文章:

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

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

  • 相关阅读:
    sublime开启vim模式
    git命令行界面
    搬进Github
    【POJ 2886】Who Gets the Most Candies?
    【UVA 1451】Average
    【CodeForces 625A】Guest From the Past
    【ZOJ 3480】Duck Typing
    【POJ 3320】Jessica's Reading Problemc(尺取法)
    【HDU 1445】Ride to School
    【HDU 5578】Friendship of Frog
  • 原文地址:https://www.cnblogs.com/as3lib/p/3979072.html
Copyright © 2011-2022 走看看