2013年12月28日 星期六

[Android] 執行專案除錯

1. The following classes could not be found:
- CalendarView (Change to android.widget.CalendarView, Fix Build Path, Edit XML)
- DatePicker (Change to android.widget.DatePicker, Fix Build Path, Edit XML)

→Eclipse layout無法build a preview of DatePicker, 不影響執行

2. logcat顯示
“UnitTestAndLog does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml”
Run As中错误的选择了目标为Android JUnit Test这项导致的,解决的方法也很简单在Run Dialog中删除JUnit Test这条即可。
http://bbs.csdn.net/topics/360073352

3.

[2014-01-24 00:47:18 - LEDWidget] Failed to install LEDWidget.apk on device '192.168.63.101:5555!
[2014-01-24 00:47:18 - LEDWidget] (null)
[2014-01-24 00:47:18 - LEDWidget] Launch canceled!

timeout值設大
http://rritw.com/a/bianchengyuyan/C__/20120906/218806.html

[Win8] 常用功能及快捷鍵

滑鼠移到左上角-右鍵關閉已開啟的Windows應用程式
滑鼠移到桌面右下角, 裝置, 投影-變更外接螢幕的顯示方式
Win8 點擊桌面右下角-開啟win8應用程式動態磚
Win8.1 點擊桌面右下角-縮小視窗回到桌面

windows鍵-切換應用程式動態磚跟一般桌面
windows鍵+PrintScreen鍵 - 詳見此篇網誌:[Win8] 螢幕擷取及同步儲存
windows鍵+S鍵-搜尋所有地方
windows鍵+F鍵-搜尋檔案
windows鍵+M鍵-縮小視窗回到桌面
windows鍵+空白鍵-切換輸入法

字寬切換外捷鍵 shift+space

[Android] VisualBox及Genymotion安裝除錯


Genymotion虛擬機器執行後, 顯示VisualBox Network有誤:












VisualBox->喜好設定下移除Host-only Network, 並刪除重複的虛擬機器->add虛擬機器並重新執行, VisualBox會自動再次安裝Host-only Network(add虛擬機器需在VisualBox也開啟時執行, 否則會顯示Host-only Network錯誤無法開啟虛擬機器)


Genymotion創建虛擬機器顯示failed to import ova:
因虛擬機器的實際檔案沒被刪掉, 至Settings的VisualBox位置下刪除後重新deployed