當用戶打開應用程序時,會導致應用程序崩潰的問題是什麼?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