我是android开发的新手,很长一段时间以来,我陷入了一个错误,即运行您的应用程序以验证安装(检查应用程序是否已与我们的服务器通信。您可能需要卸载并重新安装您的应用程序。)
build.gradle(Module:app)
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:16.0.1'
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
对于您的问题,您无需执行任何操作,只需在 Android 模拟器或真正的 Android 设备上运行该应用程序即可。如果您制作了应用程序并随后添加了dependencies
,那么您需要从设备/模拟器中删除该应用程序并重新安装该应用程序。
通过这样做,当应用程序运行时,它会传递来自google-services.json
文件发送到 firebase 服务器并检查同一个应用程序是否正在通信。
此步骤是验证应用程序中 Firebase 依赖项的正确安装。如果您觉得困难,您可以跳过该过程。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)