我正在尝试使用本教程为我的颤振应用程序设置 firebase AppCheck 。我被困在这一步,即添加import com.google.firebase.appcheck.FirebaseAppCheck;
到 MainActivity.java
. 添加并运行后,flutter run
我收到如下错误:
MainActivity.java:5: error: cannot find symbol
import com.google.firebase.appcheck.FirebaseAppCheck;
^
symbol: class FirebaseAppCheck
location: package com.google.firebase.appcheck
1 error
FAILURE: Build failed with an exception.
一般来说,我是 Flutter 和移动应用程序开发的新手。请帮助我理解我做错了什么......
我androint/app/build.gradle
是这样添加应用程序检查依赖项的:
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation platform('com.google.firebase:firebase-bom:29.0.2')
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.android.gms:play-services-safetynet:18.0.0'
implementation 'com.google.firebase:firebase-appcheck-debug:16.0.0-beta01'
}