我安装了XCode,因为颤振医生需要它,但我没有使用它。
我正在使用VSCode。
在VSCode中,我应该把这个名为GoogleService-Info.plist
的文件放在哪里?
该项目使用颤振和火基。
这是一个错误:
Exception has occurred. FirebaseException ([core/not-initialized] Firebase has not been correctly initialized. Have you added the "GoogleService-Info.plist" file to the project?
发布于 2021-06-17 03:49:58
在VSCode中,遵循以下步骤
并像这样在AppDelegate.swift
文件中配置防火墙
import UIKit
import Flutter
import Firebase /// 1. ADD THIS LINE
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
FirebaseApp.configure() /// 2. ADD THIS LINE
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
发布于 2021-06-16 19:56:37
通过遵循来自GoogleService-Info.plist
的以下步骤,将文档文件添加到项目中
发布于 2021-06-16 18:24:58
转到您的"projectName">android>app并将文件转储到这个目录中。
https://stackoverflow.com/questions/68007778
复制相似问题