分类: Android平台
2014-09-27 12:20:38
最近在整合 apk调用 flash的时候,里面用到 webview控件,然而还是每次打开应用都会提示如下错误:
W/AwContents(2825): nativeOnDraw failed; clearing to background color"
I/chromium( 2825): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
I/chromium( 2825): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
尽管尝试使用网上的一些办法,关掉其硬件加速器,系统用的是 Android 4.4.2 kitkat版本
首先, 我在 manifest文件中关闭了加速器
Androidmanifest.xml
and it did not work
然后再关闭了软件加速器,如下:
setLayerType(View.LAYER_TYPE_SOFTWARE, null);
我还打印了 log, 确定硬件加速是关掉的
if (mWebView.isHardwareAccelerated()){ Log.i("tCute", "HardwareAccelerated ---- webview !!!"); }else { Log.i("tCute", "NoneHardwareAccelerated ---- webview !!!"); }
W/AwContents(2825): nativeOnDraw failed; clearing to background color" I/chromium( 2825): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported I/chromium( 2825): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported(2825)
I very highly suspect that this has something to do with it:
10-03 18:41:30.765: W/AwContents(22369):