• mint/ubuntu Android Eclipse ADT 简单安装及执行崩溃解决的方法


    1. 下载 Android SDK(ADT Bundle)

        http://developer.android.com/sdk/index.html 

       (站点訪问不了或者慢。请參考:轻松改动本地hosts文件,稳定用谷歌搜索和谷歌服务

       (不想弄这个,请去我的百度网盘下载:http://pan.baidu.com/s/1jGIDNO6


    2. 解压到一个目录下,比如:

        unzip adt-bundle-linux-x86_64-20140624.zip -d ~/ 

        解压后得到目录:adt-bundle-linux-x86_64-20140624,子目录:eclipse 和 sdk .


    3. 为方便eclipse启动。创建一个系统图标

        在终端:gedit eclipse.desktop,输入下面内容(Exec和Iocn的路径须要改成自己设置的)

        然后,执行 sudo cp eclipse.desktop /usr/share/applications/

    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=eclipse
    Name[zh_CN]=eclipse
    Comment=eclipse
    Comment[zh_CN]=eclipse
    Exec=/home/aran/adt-bundle-linux/eclipse/eclipse
    Icon=/home/aran/adt-bundle-linux/eclipse/icon.xpm
    Categories=TextEditor;Development;
    Terminal=false

    4. 执行崩溃问题

        我使用的是 linux mint 17。执行eclipse一段时间后会崩溃,错误信息例如以下

    aran@amint ~/adt-bundle-linux/eclipse $ ./eclipse 
    Merged dex A (8 defs/2.3KiB) with dex B (628 defs/645.8KiB). Result is 636 defs/795.8KiB. Took 1.1s
    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  SIGSEGV (0xb) at pc=0x00007fb1c59ae2a1, pid=8091, tid=140403018897152
    #
    # JRE version: 6.0_43-b01
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.14-b01 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # C  [libsoup-2.4.so.1+0x6c2a1]  short+0x11
    #
    # An error report file with more information is saved as:
    # /home/aran/adt-bundle-linux/eclipse/hs_err_pid8091.log
    #
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #
        解决的方法:(谷歌出来的,不知道为什么这样改就好了)
        打开 eclipse/configuration/config.ini 文件。

        在最后一行加入 org.eclipse.swt.browser.DefaultType=mozilla

        OK,享受编程吧


  • 相关阅读:
    IfcIndexedColourMap ——Example
    IfcIndexedColourMap
    IfcImageTexture
    IfcFillAreaStyleTiles
    IfcFillAreaStyleHatching
    IfcFillAreaStyle
    IfcExternallyDefinedTextFont
    IfcExternallyDefinedSurfaceStyle
    IfcExternallyDefinedHatchStyle
    IfcDraughtingPreDefinedCurveFont
  • 原文地址:https://www.cnblogs.com/ldxsuanfa/p/10905479.html
  • Copyright © 2020-2023  润新知