Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/213.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Unity项目上的IAP在未连接到Google Play帐户时未初始化_Android_Unity3d_In App Purchase - Fatal编程技术网

Android Unity项目上的IAP在未连接到Google Play帐户时未初始化

Android Unity项目上的IAP在未连接到Google Play帐户时未初始化,android,unity3d,in-app-purchase,Android,Unity3d,In App Purchase,当我连接到android设备上的Google Play帐户时,Unity项目上的IAP正在初始化并正常工作 但是,当我下载我的应用程序并从设备中删除我的Google帐户,并尝试启动该应用程序时,我在logcat上收到以下错误消息: 02-03 11:41:31.221: I/UnityIAP(20665): IAB helper created. 02-03 11:41:31.341: I/UnityIAP(20665): Starting in-app billing setup. 02-03

当我连接到android设备上的Google Play帐户时,Unity项目上的IAP正在初始化并正常工作

但是,当我下载我的应用程序并从设备中删除我的Google帐户,并尝试启动该应用程序时,我在logcat上收到以下错误消息:

02-03 11:41:31.221: I/UnityIAP(20665): IAB helper created.
02-03 11:41:31.341: I/UnityIAP(20665): Starting in-app billing setup.
02-03 11:41:31.491: I/UnityIAP(20665): Billing service connected.
02-03 11:41:31.501: I/UnityIAP(20665): invoking callback
02-03 11:41:31.501: I/UnityIAP(20665): Checking for in-app billing 3 support.
02-03 11:41:31.521: I/UnityIAP(20665): onIabSetupFinished: 3
02-03 11:41:31.521: I/UnityIAP(20665): Failed to setup IAB. Notifying Unity...
我不确定这是正常的行为。即使我没有连接到Google帐户,IAP不应该初始化吗?我要补充的是,我仍然连接到互联网


另外,在
onIabSetupFinished:3
中的
3
是什么意思?这是错误代码吗?我可以在文档中找到更多详细信息吗?

ONIBSETUPFINGED:3可能只是找到的产品数量的日志。我不这么认为,我只有2种产品。