Android Problem fixes: Unterschied zwischen den Versionen
Aus wiki
(Die Seite wurde neu angelegt: « dexOptions { incremental true javaMaxHeapSize "4g" }») |
|||
| (2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| + | UNEXPECTED TOP-LEVEL ERROR: | ||
| + | java.lang.OutOfMemoryError: GC overhead limit exceeded | ||
| + | |||
| + | add this to your build.gradle of your project, not modules | ||
| + | |||
dexOptions { | dexOptions { | ||
incremental true | incremental true | ||
javaMaxHeapSize "4g" | javaMaxHeapSize "4g" | ||
} | } | ||
| + | |||
| + | == Battery Log == | ||
| + | adb shell dumpsys batterystats --enable full-wake-history | ||
| + | |||
| + | |||
| + | == add JNILibs == | ||
| + | + sourceSets { | ||
| + | + main { | ||
| + | + jniLibs.srcDirs = ['libs/gemalto/debug'] | ||
| + | + } | ||
| + | + } | ||
Aktuelle Version vom 29. Oktober 2015, 20:56 Uhr
UNEXPECTED TOP-LEVEL ERROR: java.lang.OutOfMemoryError: GC overhead limit exceeded
add this to your build.gradle of your project, not modules
dexOptions {
incremental true
javaMaxHeapSize "4g"
}
Battery Log
adb shell dumpsys batterystats --enable full-wake-history
add JNILibs
+ sourceSets {
+ main {
+ jniLibs.srcDirs = ['libs/gemalto/debug']
+ }
+ }