테스트폰을 바꿨더니
실행중 앱이 터졌다
에러 메세지:
OutOfMemoryError: Failed to allocate a 11571212 byte allocation with 5404192 free bytes and 5MB
until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
OutOfMemoryError 메모리 관련한 에러 같았고
아래내용을 참조하던중
참고 :
Android:java.lang.OutOfMemoryError: Failed to allocate a 23970828 byte allocation with 2097152 free bytes and 2MB until OOM
I want to show the Bitmap image in ImageView from sd card which is stored already. After run my application is crash and getting OutOfMemoryError error of: (java.lang.OutOfMemoryError: Failed to
stackoverflow.com
스택오브플로우엔 아래 구문으로도 해결안된다는 댓글들이 있는거 같았지만
내경우엔 Manifest 에 추가해주니 해결되었다
android:hardwareAccelerated="false"
android:largeHeap="true"
'안드로이드' 카테고리의 다른 글
CoordinatorLayout + tabViewPager (0) | 2020.08.24 |
---|---|
[android] progress 속성 (0) | 2020.08.18 |
[android] RecyclerView ScrollView 맨위 / 맨아래로 자동 스크롤 (0) | 2020.07.15 |
안드로이드 OS 10이상에서 저장소 권한 (0) | 2020.05.22 |
머티리얼 디자인 Edittext cursor 및 속성 (0) | 2020.04.02 |