Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find symbol DoobooUtils.getInstance().rejectPromiseWithBillingError(promise, billingResult.getResponseCode()); #764

Closed
LzazSports opened this issue Oct 7, 2019 · 3 comments · Fixed by #768
Labels
🐛 bug Something isn't working

Comments

@LzazSports
Copy link

Version of react-native-iap

Version of react-native

Platforms you faced the error (IOS or Android or both?)

Expected behavior

Actual behavior

Tested environment (Emulator? Real Device?)

Steps to reproduce the behavior

After updating to 4.0 getting the error:

cannot find symbol
DoobooUtils.getInstance().rejectPromiseWithBillingError(promise, billingResult.getResponseCode());

@ZodiacGemini
Copy link

I have the same issue, solved it temporarily by changing:
DoobooUtils.getInstance().rejectPromiseWithBillingError(promise, billingResult.getResponseCode());
to
DoobooUtils.getInstance().rejectPromisesWithBillingError(PROMISE_BUY_ITEM, billingResult.getResponseCode());

in node_modules. Don't know if this is a valid fix, so maybe someone should look into the expected behavior!

@LukePenkava
Copy link

LukePenkava commented Oct 7, 2019

Getting same error, here is a bit more info

React Native version: 0.61.2
react-native-iap version: 4.0.0
Platform: Android, Android studio 3.4.2
> Task :react-native-iap:compileDebugJavaWithJavac FAILED
/Users/home/Desktop/APLIKACE/test/node_modules/react-native-iap/android/src/main/java/com/dooboolab/RNIap/RNIapModule.java:506: error: cannot find symbol
      DoobooUtils.getInstance().rejectPromiseWithBillingError(promise, billingResult.getResponseCode());
                                                              ^
  symbol:   variable promise
  location: class RNIapModule
Note: /Users/home/Desktop/APLIKACE/test/node_modules/react-native-iap/android/src/main/java/com/dooboolab/RNIap/RNIapModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-iap:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

BUILD FAILED in 36s
252 actionable tasks: 225 executed, 27 up-to-date

@hyochan hyochan added the 🐛 bug Something isn't working label Oct 7, 2019
@hyochan hyochan mentioned this issue Oct 7, 2019
@hyochan
Copy link
Owner

hyochan commented Oct 7, 2019

Please try 4.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants