sony dpt-rp1装2.0版本,在搜索书籍时候,屏幕显示空白(另外一个问题是软键盘只能输入英文)。logcat后看到outofmemory error。查到说解决方案是在manifest里加上:
android:hardwareAccelerated="false"
android:largeHeap="true"
E/art (23558): Throwing OutOfMemoryError "Failed to allocate a 13483212 byte allocation with 6984396 free bytes and 6MB until OOM"
E/GlideExecutor(23558): Request threw uncaught throwable
E/GlideExecutor(23558): java.lang.OutOfMemoryError: Failed to allocate a 13483212 byte allocation with 6984396 free bytes and 6MB until OOM
E/GlideExecutor(23558): at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
E/GlideExecutor(23558): at android.graphics.Bitmap.nativeCopy(Native Method)
E/GlideExecutor(23558): at android.graphics.Bitmap.copy(Bitmap.java:557)
E/GlideExecutor(23558): at com.kunfei.bookshelf.help.BlurTransformation.transform(BlurTransformation.java:32)
E/GlideExecutor(23558): at com.bumptech.glide.load.resource.bitmap.BitmapTransformation.transform(BitmapTransformation.java:85)
sony dpt-rp1装2.0版本,在搜索书籍时候,屏幕显示空白(另外一个问题是软键盘只能输入英文)。logcat后看到outofmemory error。查到说解决方案是在manifest里加上: android:hardwareAccelerated="false" android:largeHeap="true"
E/art (23558): Throwing OutOfMemoryError "Failed to allocate a 13483212 byte allocation with 6984396 free bytes and 6MB until OOM" E/GlideExecutor(23558): Request threw uncaught throwable E/GlideExecutor(23558): java.lang.OutOfMemoryError: Failed to allocate a 13483212 byte allocation with 6984396 free bytes and 6MB until OOM E/GlideExecutor(23558): at dalvik.system.VMRuntime.newNonMovableArray(Native Method) E/GlideExecutor(23558): at android.graphics.Bitmap.nativeCopy(Native Method) E/GlideExecutor(23558): at android.graphics.Bitmap.copy(Bitmap.java:557) E/GlideExecutor(23558): at com.kunfei.bookshelf.help.BlurTransformation.transform(BlurTransformation.java:32) E/GlideExecutor(23558): at com.bumptech.glide.load.resource.bitmap.BitmapTransformation.transform(BitmapTransformation.java:85)