Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/311.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 如何在Play框架中使用Google Firebase管理?_Java_Playframework_Firebase Authentication_Sbteclipse - Fatal编程技术网

Java 如何在Play框架中使用Google Firebase管理?

Java 如何在Play框架中使用Google Firebase管理?,java,playframework,firebase-authentication,sbteclipse,Java,Playframework,Firebase Authentication,Sbteclipse,我已经在Play项目中添加了依赖项“com.google.firebase”%”firebase admin“%”6.10.0“,但是当我尝试导入FirebaseOptions时,它显示没有可用的导入 我遗漏了什么?我猜您跳过了第二步,但以下是您需要完成的所有步骤: 添加到build.sbtlibraryDependencies+=“com.google.firebase”%“firebase admin”%“6.10.0” 将依赖项下载到本地项目:在项目文件夹中运行sbt update 将导入

我已经在Play项目中添加了依赖项
“com.google.firebase”%”firebase admin“%”6.10.0“
,但是当我尝试导入FirebaseOptions时,它显示没有可用的导入


我遗漏了什么?

我猜您跳过了第二步,但以下是您需要完成的所有步骤:

  • 添加到build.sbt
    libraryDependencies+=“com.google.firebase”%“firebase admin”%“6.10.0”
  • 将依赖项下载到本地项目:在项目文件夹中运行
    sbt update
  • 将导入语句添加到类
    import com.google.firebase.FirebaseOptions