I want to make inApp purchase in my android ionic application.
I have done successfully implementation in ios using inApp purchase plugin. but for android it shows following error. Can any one help me?
BUILD FAILED in 27s
(node:8580) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /Users//Live18/xyz/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users//Live18/xyz/platforms/android/app/src/main/java/com/alexdisler/inapppurchases/IabHelper.java:33: error: package com.android.vending.billing does not exist
import com.android.vending.billing.IInAppBillingService;
^
/Users//Live18/xyz/platforms/android/app/src/main/java/com/alexdisler/inapppurchases/IabHelper.java:103: error: cannot find symbol
IInAppBillingService mService;
^
symbol: class IInAppBillingService
location: class IabHelper
/Users//Live18/xyz/platforms/android/app/src/main/java/com/alexdisler/inapppurchases/IabHelper.java:230: error: package IInAppBillingService does not exist
mService = IInAppBillingService.Stub.asInterface(service);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 27s
(node:8580) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.