Android Problem fixes: Unterschied zwischen den Versionen

Aus wiki
Wechseln zu: Navigation, Suche
 
Zeile 11: Zeile 11:
 
== Battery Log ==
 
== Battery Log ==
 
  adb shell dumpsys batterystats --enable full-wake-history
 
  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']
+        }
+    }