【发布时间】:2016-12-18 03:54:39
【问题描述】:
我正在尝试使用 Android Studio 将 Stripe 集成到我的 android 应用程序中。这是我的付款布局:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:wallet="http://schemas.android.com/apk/res-auto"
tools:context="me.cm.ap.Payment">
<fragment
android:id="@+id/wallet_fragment"
android:name="com.google.android.gms.wallet.fragment.SupportWalletFragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
wallet:enviroment="test"
wallet:fragmentMode="buyButton" />
所以在上面的代码中,我遇到了一个错误
wallet:enviroment="test"
wallet:fragmentMode="buyButton"
上面写着“标签片段的名称空间前缀为“钱包”......”
我已经加了
compile 'com.stripe:stripe-android:+'
到我的 gradle 模块,以及
<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />
到我的清单。
有什么问题,我该如何解决?
【问题讨论】:
标签: java android stripe-payments android-pay