Failed to allocate a 38189038 byte allocation with 16777216 free bytes and 20MB until OOM

在項目中將圖片以base64格式上傳,發現當上傳的圖片大於10張時,app直接崩潰了,出錯log如下: 這裏寫圖片描述 定位到出錯代碼發現是封裝的網絡底層出現了問題,代碼如下: 這裏寫圖片描述 出錯log顯示340行有問題,我看了半天也沒發現有什麼問題,最後在https://stackoverflow.com/questions/32919833/jsonobject-tostring-retur
相關文章
相關標籤/搜索