首页 > 移动平台 > 详细

Android & Eclipse FAQ

时间:2014-02-26 03:07:04      阅读:376      评论:0      收藏:0      [点我收藏+]

一、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

Android & Eclipse FAQ

原文:http://www.cnblogs.com/yssgyw/p/3567253.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!