当我尝试将Firebase添加到我的项目时,会发生此错误。
当我将classpath 'com.google.gms:google-services:4.3.3'
添加到Project build.gradle
时,return binding.root
上的片段中有错误
class PublicationsFragment: Fragment(){
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?): View? {
val binding: FragmentPublicationsBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_publications, container, false)
return binding.root
}
}
由于接收者的原因,以下候选人均不适用
类型不匹配:内部val File.root:在kotlin.io中定义的文件