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

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 this issue Dec 15, 2021 · 1 comment

Comments

@phongdh-lftv
Copy link

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
  1. Run flutter build apk

Issue:

FAILURE: Build failed with an exception.                                
                                                                        
* What went wrong:                                                      
Could not determine the dependencies of task ':app:processReleaseResources'.
> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
   > Could not resolve net.minidev:json-smart:[1.3.1,2.3].              
     Required by:                                                       
         project :app > project :stripe_payment > com.stripe:stripe-android:10.4.6 > com.stripe:stripe-3ds2-android:1.2.2 > com.nimbusds:nimbus-jose-jwt:7.8
      > Failed to list versions for net.minidev:json-smart.             
         > Unable to load Maven meta-data from https://google.bintray.com/exoplayer/net/minidev/json-smart/maven-metadata.xml.
            > Could not get resource 'https://google.bintray.com/exoplayer/net/minidev/json-smart/maven-metadata.xml'.
               > Could not GET 'https://google.bintray.com/exoplayer/net/minidev/json-smart/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
                                                                        
* Try:                                                                  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
                                                                        
* Get more help at https://help.gradle.org                              
                                                                        
BUILD FAILED in 7s

Note:
If not using stripe_payment or image_picker then build completed successfully

@annkitpanwar
Copy link

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

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

No branches or pull requests

2 participants