本文介绍了无法解析符号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

推荐答案


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

07-08 16:32