我一直在尝试运行我的Android模拟器上的应用程序,当我启动activity
时显示此错误消息。我目前使用Nexus 5x x86_64 API 25,我尝试了许多不同配置的仿真器。我已经安装了系统映像,对播放服务版本进行了更改,并且还更新了所有的SDK
工具。没有任何工作。我不能使用物理设备,因为我没有。这仅在我添加Firebase UI
后才开始。任何人都可以帮我解决这个错误吗?更新Google Play服务。应用程序不会工作,除非你更新谷歌播放服务
我的应用程序的build.gradle:
apply plugin: 'com.android.application'
repositories {
mavenLocal()
flatDir {
dirs 'libs'
}
}
android {
compileSdkVersion 26
buildToolsVersion '26.0.1'
defaultConfig {
applicationId "com.google.firebase.udacity.friendlychat"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:design:25.2.0'
compile 'com.android.support:appcompat-v7:26.0.1'
// Displaying images
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'com.google.firebase:firebase-auth:11.4.0'
compile 'com.google.firebase:firebase-core:11.4.0'
compile 'com.google.firebase:firebase-database:11.4.0'
compile 'com.firebaseui:firebase-ui-auth:2.4.0'
compile 'com.android.support:support-annotations:25.3.1'
}
apply plugin: 'com.google.gms.google-services'
嗨Mohit 我想建议你使用genymotion。有一个个人使用版本,终生免费使用。 –
你正面临什么错误 –
@NileshRathod这是标题。 “更新Google Play服务。除非您更新Google Play服务,否则应用程序无法运行”。 –