zoukankan      html  css  js  c++  java
  • ecplise问题总结

     

     

    ecplise

    1.ecplise在运行的时候出现错误

     Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded


    解决的方法:博客
    1.关闭Eclipse 打开D:eclipseeclipse.ini
    2.-startup前 加上-vm
    C:Program FilesJavajdk1.7.0_21injavaw.exe
    3.改为-Xms256m -Xmx1024m

     

    2.无法自动生成R文件

    今天在从android studio 中写的文件copy到ecplise 中的时候,activity里面无法自动生成R文件。
    

     

    enter description here

    1476098917828.jpg

     

    原因:因为两者之间的包名是不同的,之前是手动改的上面的包名,下面无法自动改成这里的包名,所以要再一次手动导包。
    

     

    enter description here

    1476099047314.jpg

    导成现在的包名就行了

     

    3.设置ecplise默认运行的设备

    运行Android程序时Eclipse默认启动虚拟机,这样很慢,想用自己的手机调试怎么办?
    1.Run->Run Configuration
    

     

    enter description here

    1476776315391.jpg

    2.在左侧选择Android App下的项目名称, 然后在右边选择Target,
    再勾选Always prompt to pick device,最后单击右下角的Run。
    enter description here
    选第二个
    3.这时就会弹出让你选择设备的窗口了
    enter description here

     

    4.android打包时 *** is not translated in zh错误

    现象描述:
    android项目,使用eclipse打apk包时,报错:
    strings.xml等资源文件***is not translated in zh
    解决方法:
    项目树选中鼠标右键 - Properties - Android Lint preferences - MissingTranslate 键值改为warning.
    

    链接
    链接

  • 相关阅读:
    docker-compose 使用
    mysql UNIX时间戳与日期的相互转换 查询表信息
    mysql查看表结构命令
    PostgreSQL新手入门
    ibdata1是?
    ubuntu 12.04 安装 nginx+php+mysql web服务器
    读懂IL代码就这么简单(二)
    读懂IL代码就这么简单(一)
    在Ubuntu Linux下怎样安装QQ
    jQuery 选择器
  • 原文地址:https://www.cnblogs.com/xuecanmeng/p/6484003.html
Copyright © 2011-2022 走看看