jonasbark / flutter_stripe_payment

[DISCONTINUED] A flutter plugin with stripe payment plugin integration
MIT License
307 stars 243 forks source link

Build apk has problem: Could not GET 'https://google.bintray.com/exoplayer/net/minidev/json-smart/maven-metadata.xml'. Received status code 502 from server: Bad Gateway #341

Open phongdh-lftv opened 2 years ago

phongdh-lftv commented 2 years ago

Run: flutter doctor -v

flutter doctor -v
[✓] Flutter (Channel flutter-1.22-candidate.0, 1.21.0-10.0.pre.145, on macOS 11.6 20G165, locale en-VN)
    • Flutter version 1.21.0-10.0.pre.145 at /Users/account/development/flutter
    • Framework revision 3c9f68bc7e (1 year, 4 months ago), 2020-08-18 16:28:45 -0700
    • Engine revision b58f70f2c8
    • Dart version 2.10.0 (build 2.10.0-38.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1)
    • Android SDK at /Users/account/Library/Android/sdk
    • Platform android-31, build-tools 32.0.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5, Build version 12E262
    • CocoaPods version 1.10.1

[!] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] VS Code (version 1.63.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

Steps:

  1. Just new one project
  2. Add depend on it pubspec.yaml

    
    dependencies:
    flutter:
    sdk: flutter
    flutter_localizations:
    sdk: flutter
    
    # The following adds the Cupertino Icons font to your application.
    # Use with the CupertinoIcons class for iOS style icons.
    http: 0.12.2
    stripe_payment: ^1.0.9 # <~~ added
    image_picker: ^0.6.7+14 # <~~ added

dev_dependencies: flutter_test: sdk: flutter

3. Run `flutter build apk`

**Issue:**

FAILURE: Build failed with an exception.

BUILD FAILED in 7s



**Note:**
If not using stripe_payment or image_picker then build completed successfully
annkitpanwar commented 2 years ago

I tried the solution from StackOverFlow and it worked for me. Try once Flutter, Android Unable to load Maven meta-data from ~ Build error solution