谷歌服务似乎存在一些问题。没有追溯到我的应用程序。这是Crashlytics上看到的问题的堆栈跟踪。
致命异常:java.lang.NullPointerException尝试调用 虚拟方法' boolean com.google.android.gms.c.ang.c()'在null 对象参考
com.google.android.gms.internal.zzqt $ zzc.zzasj(未知来源) com.google.android.gms.internal.zzqt $ zzc.isConnected(未知来源) com.google.android.gms.internal.zzqt.handleMessage(未知来源) android.os.Handler.dispatchMessage(Handler.java:102) android.os.Looper.loop(Looper.java:189)android.os.HandlerThread.run (HandlerThread.java:61)
我正在使用播放服务版本9.6.1
compile 'com.google.android.gms:play-services:9.6.1'
这是我的gradle文件:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
//useLibrary 'org.apache.http.legacy'
defaultConfig {
minSdkVersion 16
targetSdkVersion 21
multiDexEnabled true
}
}
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services:9.6.1'
compile 'com.facebook.android:facebook-android-sdk:4.1.0'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:recyclerview-v7:24.0.0'
compile 'com.android.support:gridlayout-v7:24.0.0'
compile 'com.android.support:cardview-v7:24.0.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.5.0'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.soundcloud.android:android-crop:1.0.0@aar'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.google.code.gson:gson:2.4'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
debugCompile 'com.facebook.stetho:stetho:1.1.1'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true;
}
compile project(':CustomBrowser-release')
compile project(':PayU-release')
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:design:24.0.0'
compile 'com.google.firebase:firebase-config:9.6.0'
}
apply plugin: 'com.google.gms.google-services'
任何帮助将不胜感激。 TIA。
答案 0 :(得分:0)
试试这个游戏服务: 编译com.google.android.gms:play-services:8.3.0'