java - 错误:无法获取 ProductFlavor_Decorated 的未知属性“FabricApiKey”
问题描述
错误:
Could not get unknown property 'FabricApiKey' for
ProductFlavor_Decorated{name=play, dimension=store,
minSdkVersion=null, targetSdkVersion=null, renderscriptTargetApi=null,
renderscriptSupportModeEnabled=null,
renderscriptSupportModeBlasEnabled=null,
renderscriptNdkModeEnabled=null, versionCode=null, versionName=null,
applicationId=null, testApplicationId=null,
testInstrumentationRunner=null, testInstrumentationRunnerArguments={},
testHandleProfiling=null, testFunctionalTest=null, signingConfig=null,
resConfig=null, mBuildConfigFields={}, mResValues={},
mProguardFiles=[], mConsumerProguardFiles=[],
mManifestPlaceholders={}, mWearAppUnbundled=null} of type
com.android.build.gradle.internal.dsl.ProductFlavor.
我的代码是
flavorDimensions "store"
productFlavors {
fdroid {
dimension "store"
}
play {
dimension "store"
resValue 'string', 'io.fabric.ApiKey', FabricApiKey //error here
resValue "bool", "com.crashlytics.RequireBuildId", "false"
}
}
打开之前创建的项目时,我无法在 Android Studio 应用上同步失败。因为同步失败时,无法显示xml列表等。如何克服这些问题
解决方案
推荐阅读
- java - 在 ExecutorService.submit 之后未调用 Java Runnable 实例上的 Run 方法
- hadoop - 如何根据连接列的条件连接配置单元表
- javascript - 2 setInterval() 实例正在运行,如何运行一个?
- git - GitKraken 与 git-crypt 的互操作性
- pandas - 如何在具有唯一键和序列值的列中唯一求和
- postgresql - 使用 CanCanCan 进行不区分大小写的搜索?
- django - Paypal - 将订单保存到数据库的最佳时间是什么时候
- docker - 码头集装箱内关闭的端口
- javascript - 当您到达滚动时的原始位置时,将位置从固定到最底部切换到 div 的初始位置
- c++ - 无法使用 QMediaPlayer 加载音乐文件