Android & Eclipse FAQ
2014-02-25 17:22
253 查看
一、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 "
当我要格式化代码的时候,右键-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 "
相关文章推荐
- 【转】Eclipse开发Android应用程序入门:重装上阵
- Android+eclipse环境打开已有工程,遇到Invalid project description 问题【转】
- 为什么eclipse里找不到com.google.android.maps.MapActivity;
- 将android源码的签名包,转化为eclipse可以的签名包
- Windows7部署Android开发环境傻瓜式教程(Eclipse+ADT) (转)
- Android 2.3.3 安卓系统 源代码 在Eclipse查看方法
- Android 开发环境配置图文教程(jdk+eclipse+android sdk)
- Android eclipse中apk签名
- Eclipse导入Android项目的正确方法
- Eclipse 新建Android工程自动创建appcompat_v7
- android——eclipse_导入源码
- 在Eclipse里查看java和android源码
- eclipse安装ADT插件重启后不显示Android SDK Manager和Android Virtual Device Manager图标的一种解决办法
- android+eclipse+maven环境搭建
- 运行Eclipse,Android lint出现错误:java.lang.NullPointerException
- eclipse Android关联源码
- eclipse android 设置及修改生成apk的签名文件
- Android:Eclipse 安装Genymotion插件的时候出现 There are no categorized items
- Windows搭建Eclipse+JDK+SDK的Android
- Eclipse无法显示Android设计界面解决方案