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

Billing is not available in this device. DebugMessage: Google Play In-app Billing API version is less than 3. ErrorCode: BILLING_UNAVAILABLE #263

Closed
abeyshiferaw0 opened this issue Oct 19, 2021 · 7 comments
Assignees
Labels

Comments

@abeyshiferaw0
Copy link

Billing is not available in this device. DebugMessage: Google Play In-app Billing API version is less than 3. ErrorCode: BILLING_UNAVAILABLE

@abeyshiferaw0 abeyshiferaw0 added the bug Something isn't working label Oct 19, 2021
@ghost ghost added the status: needs-additional-info Issues that are missing steps from bug template label Oct 19, 2021
@ghost
Copy link

ghost commented Oct 19, 2021

Hello! It doesn't seem like we have quite enough information to send this to a human yet to help out. We would love if you could provide more details about your issue by following the template without modifying any of the pre-filled text. If you're looking for support, head over to our Help Center to get in touch with our team directly.

@aboedo
Copy link
Member

aboedo commented Oct 19, 2021

Hi! 👋
Could you provide us a bit more information so we can look into this? Specifically:

  • the output of flutter doctor
  • are you using a physical device? if so, have you tried the steps outlined here for sandbox purchases on Android devices?
  • If you don't have a physical device available, you can test using the Android emulator, but you need to make sure that it includes Play Store Services.

@aboedo aboedo self-assigned this Oct 19, 2021
@vegaro
Copy link
Contributor

vegaro commented Oct 27, 2021

Any update @abeyshiferaw0 ?

@vegaro vegaro added status: waiting-for-reply Issues that are waiting for a reply and removed bug Something isn't working status: needs-additional-info Issues that are missing steps from bug template labels Oct 27, 2021
@stale stale bot removed the status: waiting-for-reply Issues that are waiting for a reply label Oct 27, 2021
@abeyshiferaw0
Copy link
Author

tried both on device and emulator with google play installed for days and just gave up, i have followed every step in the revenue cat quick starter documentation . except i didn't use an alpha close testing instead i used internal testing because it takes only minutes to be live for testers. i hope this isn't the problem

here is flutter doctor out put

`[✓] Flutter (Channel stable, 2.5.1, on macOS 11.5.2 20G95 darwin-x64, locale
en-US)
• Flutter version 2.5.1 at /Users/user/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ffb2ecea52 (6 weeks ago), 2021-09-17 15:26:33 -0400
• Engine revision b3af521a05
• Dart version 2.14.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/user/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android
Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.11.0

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 95.0.4638.54

• No issues found!
`

@vegaro
Copy link
Contributor

vegaro commented Nov 2, 2021

Uploading to a track would solve issues with purchasing, not with not being available to connect to the Google Play In-app Billing API. I assume you are but are you logged in to Play Store in the device you are using? The main two reasons why this error is displayed is because either the emulator image doesn't have the Play Store installed or because you're not logged in.

@codykerns
Copy link
Member

I'm going to go ahead and close this for now. If you're able to upgrade to the latest SDK and confirm you are logged into the Play Store, and are still encountering this issue, please re-open and we'll take a look!

@abeyshiferaw0
Copy link
Author

Sorry for not following up on this issue for this long and yes i was getting this issue after i have done every thing what the documentation says , but there wasn't a problem with revenue cat package or google billing service. it was because i was living in a country that google billing doesn't support, the error "Google Play In-app Billing API version is less than 3" is very vague and does't explain the real issue.

but by chance if this issue happens to anyone, the only fix i found in the whole internet is to
1.remove all google accounts from device
2.enable vpn in united states
3.clear google play service and google play data from settings
4.create a new fake google account with the same device, to develop app with in app purchase or revenue cat package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants