1、eclipse中格式化代碼快捷鍵Ctrl+Shift+F失效的解決辦法android
當我要格式化代碼的時候,右鍵-source-format可以起效,但ctrl+shift+f很差使了。windows
google以後來發現是搜狗輸入法惹的禍。原來是和「簡繁體快捷鍵」衝突了。輸入法中的這個快捷鍵咱們通常不用,小勾勾去掉就成了。app
1、運行eclipse執行android應用,控制檯報錯:eclipse
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.jvm
解決辦法:查看任務管理器,關閉全部tadb進程,而後重啓eclipse編輯器
abd命令
adb kill-server
adb start-server字體
1、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.ui
Slick!google
Full explanation here http://stackoverflow.com/a/4580630/682754debug
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 "