无法解析符号TYPE_NON_CONSUMABLE [英] Cannot resolve symbol TYPE_NON_CONSUMABLE

查看:91
本文介绍了无法解析符号TYPE_NON_CONSUMABLE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我想在我的应用程序中整合fortumo(直接职业计费)

但是得到错误无法解决符号TYPE_NON_CONSUMABLE在一行上

这是我的代码在下面



Hi Everyone

I am trying to integrate fortumo (Direct Career Billing) in my app
but gettinh an error "cannot resolve symbol TYPE_NON_CONSUMABLE" on a single line
this is my code below

public void onClick(View v) {
        switch(v.getId()) {
            case R.id.buy_button: {

                PaymentRequest.PaymentRequestBuilder builder = new PaymentRequest.PaymentRequestBuilder();
                builder.setService(SERVICE_ID, APP_SECRET);
                builder.setDisplayString("Fortumo Sample1");
                builder.setProductName("Fortumo Sample1");  // non-consumable purchases are restored using this value
                builder.setType(MpUtils.TYPE_NON_CONSUMABLE);   // non-consumable items can be later restored
                builder.setIcon(R.drawable.ic_launcher);
                PaymentRequest pr = builder.build();
                makePayment(pr);

            } break;
        }
    }





请帮助



我尝试了什么:



我试过在Stackoverflow上发布问题



Kindly help

What I have tried:

I have tried posting the question on Stackoverflow

推荐答案

阅读文档表明存在轻微的断开连接。请参阅 MpUtils(Fortumo Android SDK API) [ ^ ]。
Reading the documentation shows that there is a slight disconnect. See MpUtils (Fortumo Android SDK API)[^].


这篇关于无法解析符号TYPE_NON_CONSUMABLE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆