문제

I have setup In-App Billing for the first time using the new v3 API. When I press the button to purchase, my app crashed, the log is:

java.lang.IllegalStateException: IAB helper is already set up.

What is the cause of this error? Does anyone know a solution to this?

도움이 되었습니까?

해결책

This means you call IABHelper.startSetup() at least twice. This method must be called only onсe. Check out your code and remove second call, which is most likely resides in you OnClickListener.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top