当用户打开应用程序时,会导致应用程序崩溃的问题是什么?Xamarin.Forms应用程序在Android中崩溃
我HockeyApp整合,显示的错误:
VMRuntime.newNonMovableArray java.lang.OutOfMemoryError: Failed to allocate a 63701004 byte allocation with 16777056 free bytes and 41MB until OOM
Xamarin caused by: java.lang.OutOfMemoryError: Failed to allocate a 63701004 byte
allocation with 16777056 free bytes and 41MB until OOM
dalvik.system.VMRuntime.newNonMovableArray(Native Method)
android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
android.graphics.BitmapFactory.decodeStreamInternal()BitmapFactory.java:639
android.graphics.BitmapFactory.decodeStream()BitmapFactory.java:615
android.graphics.BitmapFactory.decodeStream()BitmapFactory.java:653
回答 我已经解决了问题
- 更新Xamarin.Forms的NuGet。
- 删除解决方案中的包文件。
- 再次构建解决方案。
的OutOfMemoryError是相当自我解释 – Jason
你能告诉我们发生错误相关的代码? – zett42
@ zett42更新与描述 – tanktaeyang