I referred to the tutorial on Android Pay on site Androi Pay integration tutorial and able to execute it and get the full wallet. This Biker app is compiled with build tool v22.0.1 and Google play services library v8.1.0. But my application requires build tool version 23.0.2 and Google play service library v8.4.0. Full wallet is not received in the Biker application when I do these two modifications to build.gradle:
我参考了Android Pay网站Android Pay集成教程,并能够执行它并获得完整的钱包。这个Biker应用程序是用build tool v22.0.1和谷歌play services library v8.1.0编译的。但是我的应用程序需要构建工具版本23.0.2和谷歌播放服务库v8.4.0。当我对build进行这两项修改时,在Biker应用程序中没有收到完整的钱包。
- Build tool from v22.0.1 to 23.0.2
- 构建工具从v22.0.1到23.0.2。
- Google play service wallet library from v8.1.0 to v8.4.0
- 谷歌运行从v8.1.0到v8.4.0的服务钱包库
I get result code 1 on activity result when the full wallet is requested.
当请求完整的钱包时,我将获得活动结果的结果代码1。
Also 'Change card/address' button on the wallet fragment fails to respond with these modifications in build.gradle. I have updated the Android SDK. Is there anything I am missing?
在build.gradle中,钱包碎片上的“更改卡/地址”按钮也不能响应这些修改。我已经更新了Android SDK。我还缺什么吗?
Edit 02/16/2016
编辑02/16/2016
Now I referred the latest Android Pay source from Github that has latest build tool (v23.0.2) and Google Play services library (v8.4.0). I can't run the application in Android Pay mode as I don't have cards that are supported by Android Pay. I did not find any workaround for introducing mock cards in Android Pay to work with Wallet mode ENVIRONMENT_TEST
现在我提到了Github上最新的Android Pay源,它有最新的构建工具(v23.0.2)和谷歌Play services库(v8.4.0)。我不能在安卓支付模式下运行应用程序,因为我没有安卓支付支持的卡片。我没有找到在Android Pay中引入模拟卡来使用钱包模式ENVIRONMENT_TEST的方法
After modifying the WalletFragmentStyle
to
在修改了WalletFragmentStyle之后。
WalletFragmentStyle walletFragmentStyle = new WalletFragmentStyle()
.setBuyButtonText(BuyButtonText.BUY_WITH_GOOGLE)
.setBuyButtonAppearance(BuyButtonAppearance.CLASSIC)
.setBuyButtonWidth(Dimension.MATCH_PARENT);
I get the same response in onActivityResult with RESPONSE CODE as 1 when requesting for Full wallet. The error number is 10. I am unable to trace what error 10 corresponds to.
我在onActivityResult中得到的响应与在请求完整钱包时得到的响应相同,响应代码为1。误差是10。我无法跟踪10对应的错误。
1 个解决方案
#1
1
You need to click 'Install repository and sync project' after encountering the error. This issue will be fixed after installing all the latest versions of build tools and other updates.
遇到错误后,需要单击“安装存储库和同步项目”。这个问题将在安装所有最新版本的构建工具和其他更新之后得到解决。
#1
1
You need to click 'Install repository and sync project' after encountering the error. This issue will be fixed after installing all the latest versions of build tools and other updates.
遇到错误后,需要单击“安装存储库和同步项目”。这个问题将在安装所有最新版本的构建工具和其他更新之后得到解决。