我想在谷歌眼镜中执行指南针示例程序,但我总是收到此错误.. 但我运行秒表和计时器,它会很好.. 告诉解决方案..
`[2014-06-07 19:54:26 - Compass] Dx `
`trouble writing output: already prepared`
`[2014-06-07 19:54:26 - Compass] ------------------------------`
`[2014-06-07 19:54:26 - Compass] Android Launch!`
`[2014-06-07 19:54:26 - Compass] adb is running normally.`
`[2014-06-07 19:54:26 - Compass] No Launcher activity found!`
`[2014-06-07 19:54:26 - Compass] The launch will only sync the application package on the device!`
`[2014-06-07 19:54:26 - Compass] Performing sync`
`[2014-06-07 19:54:26 - Compass] Automatic Target Mode: using existing emulator emulator-5556 running compatible AVD AVD_for_Glass
[2014-06-07 19:54:26 - Compass] Uploading Compass.apk onto device emulator-5556'
[2014-06-07 19:54:26 - Compass] Installing Compass.apk...`
`[2014-06-07 19:54:29 - Compass] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY`
`[2014-06-07 19:54:29 - Compass] Please check logcat output for more details.`
`[2014-06-07 19:54:29 - Compass] Launch canceled!`
答案 0 :(得分:1)
DisplayMetrics在Glass Explorer版本上提供此输出:
DisplayMetrics {density = 1.5,width = 640,height = 360,scaledDensity = 1.5,xdpi = 180.62222,ydpi = 169.33333}
所以它确实看起来像hdpi。
屏幕尺寸也很小:
...
else if ((getResources().getConfiguration().screenLayout &Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_SMALL) {
Log.d(TAG,"SMALL screen");
}
它是" notlong"在你的代码中。
答案 1 :(得分:0)