android - 如何使用 Android 版本构建具有更高 minSdkVersion 的排毒测试 - - React-Native
问题描述
我想使用 Detox 进行 React-native e2e 测试,这需要 minSdkVersion 为 18,但我的应用程序是 16。我还没有准备好为我的应用程序升级到 18,所以我想使用 android 风格为排毒测试和另一个用于生产。这是我到目前为止所做的:在 app/build.gradle 中:
flavorDimensions "version"
productFlavors {
detox {
// Assigns this product flavor to the "version" flavor dimension.
// If you are using only one dimension, this property is optional,
// and the plugin automatically assigns all the module's flavors to
// that dimension.
dimension "version"
versionNameSuffix "-detox"
minSdkVersion 18
}
prod {
dimension "version"
versionNameSuffix "-prod"
minSdkVersion 16
}
}
现在在 android studio 我有 4 个构建变体: detoxDebug 正在同步,但 productionDebug 给出了这个错误:
谢谢!
解决方案
推荐阅读
- lit-element - 当 Attribute 设置为 false 时,该属性是否仍可在元素内观察到?
- scikit-learn - ValueError:使用线性回归的垃圾邮件或非垃圾邮件预测
- asp.net-web-api - JSon 到 WebAPI 变为 [[]],[[]],[[]],[[]]
- angular - 使用ngrx在一个@Effect中构建多个HTTP调用的最简洁方法是什么
- oauth-2.0 - Google Home 帐号关联(返回结果时出错。)
- android - 从最近的应用列表中删除应用时会调用哪些生命周期事件?
- php - 具有相同键的 PHP SoapClient 元素
- regex - 正则表达式希望使用正则表达式查找包含多个单词的所有文本
- asp.net-core - 如何在 Entity Framework Core 中创建两个与同一实体的一对一关系
- c# - 通过 Span 修改变量时,优化构建和 JIT 编译是否会产生问题
?