将 Flutter 应用上传到 Google Play - 请升级到账单库版本 3 或更高版本以发布此应用。详细了解计费库 3
Posted
技术标签:
【中文标题】将 Flutter 应用上传到 Google Play - 请升级到账单库版本 3 或更高版本以发布此应用。详细了解计费库 3【英文标题】:Uploading Flutter App to Google Play - Please upgrade to Billing Library version 3 or newer to publish this app. Learn More about Billing Library 3 【发布时间】:2021-11-18 01:31:25 【问题描述】:将 Flutter 应用上传到 Google Play 时,出现以下错误:
我们检测到此应用使用了不受支持的 Play 结算版本。 请升级到帐单库版本 3 或更高版本以发布此 应用程序。详细了解计费库 3。
我已经更新了 app/build.gradle 依赖项:
dependencies
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
def billing_version = "4.0.0"
implementation "com.android.billingclient:billing-ktx:$billing_version"
我正在使用purchases_flutter
插件:
purchases_flutter: ^3.4.5
我也多次运行flutter clean。
这是我的颤振医生输出:
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
• Flutter version 2.2.3 at /Users/jabari.garrett/Development/Tools/flutter
• Framework revision f4abaa0735 (3 months ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/jabari.garrett/Library/Android/sdk
• Platform android-31, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for ios and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5, Build version 12E262
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• 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 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.60.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.26.0
[✓] Connected device (2 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 93.0.4577.82
因此,我无法创建任何订阅。
感谢任何帮助!
【问题讨论】:
问题解决了吗? 【参考方案1】:可能是因为您使用implementation "com.android.billingclient:billing-ktx:$billing_version"
而不是implementation "com.android.billingclient:billing:$billing_version"
。
这对我有用。
【讨论】:
以上是关于将 Flutter 应用上传到 Google Play - 请升级到账单库版本 3 或更高版本以发布此应用。详细了解计费库 3的主要内容,如果未能解决你的问题,请参考以下文章
Flutter 上传列表到 Google Firestore
第一次尝试将应用上传到 Google Play 时出现错误“您的 Android App Bundle 使用错误的密钥签名。”