Android & Eclipse FAQ
一、eclipse中格式化代码快捷键Ctrl+Shift+F失效的解决办法
当我要格式化代码的时候,右键-source-format能够起效,但ctrl+shift+f不好使了。
google之后来发现是搜狗输入法惹的祸。原来是和“简繁体快捷键”冲突了。输入法中的这个快捷键我们一般不用,小勾勾去掉就成了。
一、运行eclipse执行android应用,控制台报错:
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at 'E:\setups\android\android-2.1_r01-windows\tools\adb.exe' and can be executed.
解决办法:查看任务管理器,关闭所有tadb进程,然后重启eclipse
abd命令
adb kill-server
adb start-server
一、warning:Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one
answer:I removed the debuggable attribute from the manifest, and I can now both run the app in debug mode and export it to a market-ready APK file without changing any code.
Slick!
Full explanation here http://stackoverflow.com/a/4580630/682754
64位Eclipse运行时提示“Failed to load the JNI shared library \Java\jre6\bin\client
\jvm.dll”的一个解决方案
如何查看异常的代码位置?
要查看异常代码的位置需要使用Exception.printStackTrace().把异常的相关信息打印出来。
如果应用没有相应的权限,会source not found
导入的jar包,如果没有在Build Path->configure build path..->order and export选线卡中
,勾选的话,会报错source not found
eclipse更改xml文件,txt文件,property文件等文件编辑器的字体设置:
window--preferences--General--appearance--colors  and  fonts--Basic-- "Text font "
Android & Eclipse FAQ的更多相关文章
- Android + eclipse +ADT安装完全教程
		
最近几天没事做,网上看来看去突然就想弄个android来学学... 首先,是要下载android SDK,在http://developer.android.com/sdk/index.html这个 ...
 - ANT编译Android Eclipse工程
		
将Android SDK的tools/和platform-tools/目录包含在可执行文件的搜索路径中.Windows下,将其添加到PATH环境变量中 切换到Android Eclipse项目目录下, ...
 - Android Eclipse 安装教程   hosts替换
		
http://www.cnblogs.com/Potato-lover/p/5582542.html 第一步,也是最为关键的一步——修改hosts文件 为什么说是最关键的一步呢?因为接下来的操作,我们 ...
 - android + eclipse + 后台静默安装(一看就会)
		
首先要说到三个类. import android.content.pm.IPackageInstallObserver; import android.content.pm.IPackageIns ...
 - [Android]Eclipse 安装 ADT[Android Development Tooling] 失败的两种解决办法
		
原因 最近想在新装的 Win7 里搭建一下 Android 的开发环境,虽然现在有 Android Studio 了,不过还是习惯 Eclipse 一点.众所周知的原因,Eclipse 直接安装 AD ...
 - 【转】Android Eclipse调试技巧
		
原文地址:https://www.cnblogs.com/tianchunming/p/5423942.html Android Eclipse调试技巧 在Android 应用程序开发中我们经常需 ...
 - android eclipse 环境配置(win 7)
		
一.下载安装android SDK 两种方式: (1)官网下载(需FQ):https://developer.android.com/studio/index.html (2)无需FQ下载:http: ...
 - This template requires a more recent version of the Android Eclipse plugin. Please update from versi
		
新建android project的时候遇到这个错误: 解决方法:①直接修改F:\JAVA\SDK\android-sdk\tools\templates\activities (对应你的JAVA S ...
 - Android  Eclipse 安装教程   2016.06.13版
		
2016.8.16修改 第一步,也是最为关键的一步——修改hosts文件 为什么说是最关键的一步呢?因为接下来的操作,我们都需要连接google网,也就是要连接国外的网站.一般情况下,国外的网站是无法 ...
 
随机推荐
- C++11 之 " = delete "
			
1 缺省函数 设计一个类,没有成员函数 (member function),只有成员数据 (member data) class DataOnly { private: std::string st ...
 - Android Application Project 工程目录下各个文件的意思
			
(1) src:源文件,主要是完成java代码的编写 (2) gen:ADT即系统自动生成的JAVA文件(即源代码目录),程序员千万不要去修改 (3) gen->[Package Name]-& ...
 - Git Book 中文版 - Git的撤消操作 - 重置, 签出 和 撤消
			
Git Book 中文版 - Git的撤消操作 - 重置, 签出 和 撤消 Git的撤消操作 - 重置, 签出 和 撤消 Git提供了多种修复你开发过程中的错误的方法. 方法的选择取决于你的情况: 包 ...
 - [iOS UI进阶 - 5.0] 手势解锁Demo
			
A.需求 1.九宫格手势解锁 2.使用了绘图和手势事件 code source: https://github.com/hellovoidworld/GestureUnlockDemo B ...
 - HTTP协议状态码详解
			
HTTP状态码,我都是现查现用. 我以前记得几个常用的状态码,比如200,302,304,404, 503. 一般来说我也只需要了解这些常用的状态码就可以了. 如果是做AJAX,REST,网络爬虫, ...
 - js获取服务端IP及端口及协议
			
alert("location:"+window.location); alert("href: "+window.location.href); alert( ...
 - 开发程序过程中遇到的调用Web Api小问题
			
在用Umbraco Web Api开发程序时,前端使用React调用Web Api 当时是有一个页面Search.cshtml,把用React产生的脚本代码,在这个页面进行引用 写了一个Api, 调用 ...
 - POJ 3667 Hotel (线段树区间合并)
			
题目链接:http://poj.org/problem?id=3667 最初给你n间空房,m个操作: 操作1 a 表示检查是否有连续的a间空房,输出最左边的空房编号,并入住a间房间. 操作2 a b ...
 - ID生成器的一种可扩展实现方案
			
ID生成器主要为了解决业务程序生成记录ID的场景,而一个好的ID生成器肯定要满足扩展性好.并发性好的特点,本文下面介绍一种满足上述特点的实现方案. 此方案的核心思想是:每次需要扩容机器时,将每个节点维 ...
 - SQL Server中如何获取当前年,月,日,时,分,秒
			
分类: SQL Server select GETDATE() as '当前日期',DateName(year,GetDate()) as '年',DateName(month,GetDate()) ...