问题描述
我正在尝试将 firebase(crashlytics)添加到动态功能中。我将 firebase-crashlytics 依赖项放入模块级别的 build.gradle + 添加 google-services.json 但没有成功。 我不知道我是否可以做到这一点,如果不能,为什么? 感谢阅读。
plugins {
id 'com.android.dynamic-feature'
}
android {
compileSdkVersion 30
buildToolsversion "30.0.2"
defaultConfig {
applicationId "com.gl.android.dynamicModule"
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles 'proguard-rules.pro'
}
}
}
dependencies {
implementation project(":app")
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
androidTestImplementation 'androidx.annotation:annotation:1.1.0'
implementation 'com.google.firebase:firebase-crashlytics-ndk:17.1.1'
implementation 'com.google.firebase:firebase-analytics:17.4.4'
}
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.gms.google-services'
错误构建: C:\Projects\Task_SandBox\DynamicSo\TestFirebase\app\build\intermediates\packaged_manifests\release\AndroidManifest.xml:109: AAPT: 错误: 资源整数/google_play_services_version (aka com.xxx.xxx.xxx.xxx:integer/google_play_services_version ) 未找到。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)