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://*.com/a/4580630/682754

Android & Eclipse FAQ

上一篇:什么是移动云计算


下一篇:Android 加法程序