博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Eclipse相关集锦
阅读量:6991 次
发布时间:2019-06-27

本文共 1717 字,大约阅读时间需要 5 分钟。

开场白,之前的个人博客写过很多细小的Eclipse的东西,这里将搬过来,作为整体一篇。

1.Eclipse提示失效

解决:window->Preferences->Java->Editor->Content Assist->Advanced 上面的选项卡Select the proposal kinds contained in the ‘default’ content assist list:中把 Other Java Proposals 选项打上勾就可以了。

2.Failed to load JavaHL Library

解决:Window — Preference —Team —SVN — SVN Interface 这里将JavaHL 改成SVNKit即可。

3.Failed to install on device timeout

解决:eclipse -window -Preferences – Android – DDMS – ADB connection time out(ms).把这个时间设置的长一些,默认是5秒,我改成20秒就ok了。

4.Eclipse自动生成Override

Source--Clean up会自动生成很多Override,下面就是cleanup的清理规则

 

Change non static accesses to static members using declaring typeChange indirect accesses to static members to direct accesses (accesses through subtypes)Remove unused importsAdd missing ‘@Override’ annotationsAdd missing ‘@Override’ annotations to implementations of interface methodsAdd missing ‘@Deprecated’ annotationsRemove unnecessary castsRemove unnecessary ‘$NON-NLS$’ tags

5.Java Override报错

 

解决:菜单栏选择Window--Preferences--Java--Compiler--Java Compliance 将级别设置为1。6即可。这样的更改会对所有的项目都其作用。

6.Workspace in use of cannot be created ,choose a different one Eclipse

在确定了只有一个Eclipse启动的情况下。

打开Eclipse目录,打开configuration\.settings 这个目录,然后使用记事本打开org.eclipse.ui.ide.prefs,然后修改
RECENT_WORKSPACES=D\:\\androdiapps\nD\:\\java\nD\:\\java\\intentTest成自己可用的路径就可以了,然后重启。

7.Unparsed aapt error(s)错误的处理方法

解决:文件名改成合法的限定字符,合法字符如下[a- z0-9_.]

8.Android requires compiler compliance level 5.0. Please fix project properties.错误

方法一. 项目 右键 ->android tools ->Fix Project

方法二. 如果不可以,检查Project -> Properties->Java Compiler

确认JDK compliance被设置为1.6,并且enable specific seetings.

9.Project is missing required source folder: ‘gen’

解决方法:

手动的创建这个文件夹,然后再刷新,这时就应该出现一个gen文件夹了,之后无论如何刷新和build都不会出问题了。

 

转载地址:http://ylbvl.baihongyu.com/

你可能感兴趣的文章
How to hide redirected URL
查看>>
利用SVN的post-commit钩子实现多项目自动同步
查看>>
在SUSE SP3上安装新的python-3.6.4
查看>>
C#高级编程之委托
查看>>
2018.12.7python笔记(3.3-3.5)
查看>>
数据类型之间的运算
查看>>
linux下rar文件的解压
查看>>
Python全栈开发目录
查看>>
Python 程序如何高效地调试?
查看>>
nginx(源码)
查看>>
基本数据类型
查看>>
HP服务器Linux下hpacucli常用命令
查看>>
htop/dstat/glabce工具介绍
查看>>
IIS 6.0安全管理配置规范
查看>>
Silverlight获取子控件和父控件方法
查看>>
MySQL之SQL优化一
查看>>
PHP开发工具(PHP IDE)对比评测:Zend Studio VS NetBeans PHP
查看>>
LNMP+Cacti+Nagios+ndo2+Npc
查看>>
iredmail文档
查看>>
Fuel for openstack:untagged networks can not be assigned to the same interface
查看>>