android - 无法解析符号“MoEInitializer”
问题描述
我正在尝试在我的颤振应用程序上安装 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'
}
解决方案
您需要在颤振pubspec.yaml
文件中添加依赖项
dependencies:
moengage_flutter: $lastestVersion
也别忘了跑flutter pub get
正如文件所说here
推荐阅读
- storage - Jfrog 中的二进制文件到底是什么
- javascript - 如何根据变量运行功能未知的次数?
- java - 使用 JPA 进行乐观锁定(休眠)
- android - 找不到 com.android.tools.build:gradle:1.3.50
- postgresql - Slick-PG 和 PostgreSQL 12 是否稳定运行?
- java - 在 Active Directory 中更新用户失败(使用 Boomi 映射)
- jsf - 数据表之外的 PrimeFaces 全局过滤器不起作用
- visual-studio-code - VSCode烦人的问题焦点行为,不断跳到问题
- javascript - 如何使用 Laravel 创建数据透视表,如 Excel 数据透视表
- python - 如何使用 Django 在 Celery 中正确创建任务?