I have many test, separated in different files, when I run each class separately it runs fine. But when I run all the tests in my project, I get this error on one of the last test-classes.
android.view.InflateException: Binary XML file line #82: Error inflating class <unknown>
Caused by: java.lang.OutOfMemoryError: Failed to allocate a 17462912 byte allocation with 15698580 free bytes and 14MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:609)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444)
at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:973)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2423)
at android.content.res.Resources.loadDrawable(Resources.java:2330)
at android.content.res.TypedArray.getDrawable(TypedArray.java:749)
at android.widget.ImageView.<init>(ImageView.java:146)
at android.widget.ImageView.<init>(ImageView.java:135)
at android.widget.ImageView.<init>(ImageView.java:131)
... 23 more
Aucun commentaire:
Enregistrer un commentaire