I want to integrate Firebase into my Android app. When I do this, I need to add com.google.gms.google version 9 services to my gradle app.
After testing several times and opening my application several times, sometimes my application stops responding after starting (the view has not even been created).
So, I tried to return com.google.gms.google services back to version 7.5, which is the version I used before adding Firebase. Then my application works fine, as before.
This is the gradle module file of my application (after returning back to gms version 7.5)
apply plugin: 'com.android.application'
//apply plugin: 'com.google.gms.google-services'
android {
// compileSdkVersion 23
// buildToolsVersion '23.0.0'
compileSdkVersion 22
buildToolsVersion '22.0.0'
defaultConfig {
applicationId "com.pasarumah.androidapp"
minSdkVersion 15
targetSdkVersion 22
versionCode 7
versionName "1.6"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
zipAlignEnabled true
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.mcxiaoke.volley:library:1.0.7'
compile 'org.apache.httpcomponents:httpmime:4.3.5'
// compile 'com.android.support:support-v4:23.2.0'
compile 'com.android.support:support-v4:22.2.0'
compile files('libs/httpcore-4.3.3.jar')
// compile 'com.google.android.gms:play-services:9.0.0'
compile 'com.google.android.gms:play-services:7.5.0'
compile 'com.android.support:multidex:1.0.1'
compile files('libs/universal-image-loader-1.9.4.jar')
}
I searched and it looks like I have the same problem:
Android app is not responding