在 Stripe 中,我的客户想要电子邮件和持卡人姓名,但Stripe支付 UI 没有在com.stripe.android.view.CardMultilineWidget 中提供该选项。我想试试最新的条纹版本,
我使用的是条纹版本(14.1.1)。所以更新到最新的(16.8.0)
Build 向我展示了它不需要 minSdkVersion 19. requires 21 in manifest merge 的错误。所以我将 minSdkVersion 更新为 21
我得到了 caches/transforms-2/files-2.1/4541b0189187e0017d23bbb0afebd16a/jetified-kotlin-stdlib-common-1.5.0.jar!/META-INF/kotlin-stdlib-common.kotlin_module 的模块不兼容的编译版本 Kotlin_module: . 其元数据的二进制版本为 1.5.1,预期版本为 1.1.15。
我厌倦了改变 gradle 版本。仍然得到同样的错误。需要一些帮助来解决不兼容的错误并在条带中添加电子邮件和持卡人姓名。谢谢。
在调试模式下,一切看起来都不错,可以从我的API获取响应和数据列表。但是在我构建app-release.apk并安装到手机后,它显示没有互联网连接
这是我的代码
ScopedModelDescendant<ReportPosViewModel>(
builder: (context, child, model) {
return FutureBuilder<List<Invoice>>(
future: model.invoices,
builder: (_,
AsyncSnapshot<List<Invoice>> snapshot) {
switch (snapshot.connectionState) {
case ConnectionState.none:
case ConnectionState.active:
case ConnectionState.waiting:
return Center(
child:
const CircularProgressIndicator());
case ConnectionState.done:
if (snapshot.hasData) {
//something todo
} else if (snapshot.hasError) {
return NoInternetConnection(
action: () async {
await model.setInvoice();
await getData();
},
);
}
}
},
);
},
),
Run Code Online (Sandbox Code Playgroud)