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

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。