我正在尝试在我的flutter应用程序上安装MoEngage SDK。我需要根据文档将本地代码添加到我的项目中。我在SampleApplication.java文件中得到这个导入错误

我已经添加了依赖项
dependencies {
implementation "com.android.support:support-v4:25.3.1"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "androidx.core:core:1.3.1"
implementation "androidx.appcompat:appcompat:1.2.0"
implementation "androidx.lifecycle:lifecycle-process:2.2.0"
implementation "com.moengage:moe-android-sdk:10.6.00"
implementation 'com.google.firebase:firebase-messaging:21.0.1'
}发布于 2021-11-10 08:52:13
您需要在flutter pubspec.yaml文件中添加依赖项
dependencies:
moengage_flutter: $lastestVersion另外,别忘了运行flutter pub get
正如纪录片所说的那样,here
https://stackoverflow.com/questions/66008629
复制相似问题