I have a problem with the GC overhead limit.
I encountered this error after I edited the Grade and updated the GooglePlayServices and updated the Android Studios version into 2.1.2
I'm not quite sure why this happened since I have changed next to nothing in my actual program before trying to run. So I am suspecting the source came from the Gradle, though I am not sure if the GC error is a new feature in 2.1.2 or happened because of the update.
The gradle is below for reference (this is the app module, the only gradle file I messed with)
apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { applicationId "com.example.denny.phonebelt" minSdkVersion 16 targetSdkVersion 24 versionCode 1 versionName "1.0" multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.google.android.gms:play-services:9.2.0' compile 'com.android.support:appcompat-v7:24.0.0' compile 'com.android.support:design:24.0.0' compile 'com.android.support:support-v4:24.0.0' compile 'com.android.support:multidex:1.0.1' compile 'com.google.firebase:firebase-database:9.0.0' compile 'com.google.firebase:firebase-auth:9.0.0' }