Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java firebase依赖项中的渐变生成错误_Java_Android_Firebase - Fatal编程技术网

Java firebase依赖项中的渐变生成错误

Java firebase依赖项中的渐变生成错误,java,android,firebase,Java,Android,Firebase,错误:配置项目“:app”时出现问题 无法解析配置“”的所有依赖项:应用:_debugApkCopy。 找不到com.google.firebase:firebase核心:10.1.0。 要求: FirstApp:应用程序:未指定 找不到com.google.firebase:firebase数据库:10.1.0。 要求: FirstApp:应用程序:未指定 您好,这是库版本的问题 就我而言,我改变了版本 com.google.firebase:firebase-core:10.1.0.

错误:配置项目“:app”时出现问题

无法解析配置“”的所有依赖项:应用:_debugApkCopy。 找不到com.google.firebase:firebase核心:10.1.0。 要求: FirstApp:应用程序:未指定 找不到com.google.firebase:firebase数据库:10.1.0。 要求: FirstApp:应用程序:未指定


您好,这是库版本的问题
就我而言,我改变了版本

com.google.firebase:firebase-core:10.1.0.             
com.google.firebase:firebase-database:10.1.0


使用
10.2.0
version只需阅读firebase的文档,其中明确提到了依赖项和排除选项。你可以看到你可以粘贴你的gradle file.dependencies{compile fileTree(包括:['*.jar'],dir'libs')compile'com.google.firebase:firebase core:10.1.0'compile'com.google.firebase:firebase数据库:10.1.0'androidTestCompile('com.android.support.test.espresso:espresso core:2.2'),{排除组:'com.android.support',模块:'support annotations'})编译'com.android.support:appcompat-v7:25.1.1'测试编译'junit:junit:4.12'}apply plugin:'com.google.gms.google-services'检查此链接以供参考感谢大家,通过将版本更改为10.2.0并重新安装repository使我的构建运行成功
com.google.firebase:firebase-core:10.1.0.             
com.google.firebase:firebase-database:10.1.0
com.google.firebase:firebase-core:10.0.0.             
com.google.firebase:firebase-database:10.0.0