nativescript-community / ui-lottie

NativeScript plugin to expose Airbnb Lottie
https://github.com/airbnb/lottie-android
Other
177 stars 57 forks source link

Received status code 502 from server: Bad Gateway #94

Open relez opened 2 years ago

relez commented 2 years ago

Looks like the server bintray.com is going inactive, I am having this error:

Could not determine the dependencies of task ':verifyReleaseResources'.
> Could not resolve all task dependencies for configuration ':releaseRuntimeClasspath'.
   > Could not resolve com.airbnb.android:lottie:4.2.+.
     Required by:
         project :
      > Failed to list versions for com.airbnb.android:lottie.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/com/airbnb/android/lottie/maven-metadata.xml.
            > Could not HEAD 'https://jcenter.bintray.com/com/airbnb/android/lottie/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
ShyshkovOleg commented 2 years ago

Same from my side. @bradmartin, please take a look. Platform: Android, Plugin version: @latest(4.3.3)

Screen Shot 2022-01-12 at 11 35 47 PM
bradmartin commented 2 years ago

I think jcenter is dead or offline... not sure exactly. Haven't had chance to look into this, but might just need to point to a new location for this.

farfromrefug commented 2 years ago

the issue might not be on this plugin side. it does not define the repositories not sure but could the cli be trying to use jcenter?

relez commented 2 years ago

Looking at build.gradle file I see the jcenter() multipla times which is obsolete by now:

...
allprojects {
    repositories {
        google()
        jcenter()
    }
    beforeEvaluate { project ->
        if (rootProject.hasProperty("userDefinedGradleProperties")) {
            rootProject.ext.userDefinedGradleProperties.each { entry ->
                def propertyName = entry.getKey()
                def propertyValue = entry.getValue()
                project.ext.set(propertyName, propertyValue)
            }
        }

    }
}
...

Maybe is @nativescript/android packaged what should be updated?

farfromrefug commented 2 years ago

@relez actually i might not have the issue because i use ns that i build from source. let s ask on discord

relez commented 2 years ago

I updated to @nativescript/android 8.2.0-alpha-9 and @nativescript/core 8.2.0-alpha.3 and worked! Looking at build.gradle file inside platforms/android I see that the file has been modified to use mavenCentral() instead of jcenter(), so I think the verison 8.1.1 of @nativescript/android needs an update, right?

farfromrefug commented 2 years ago

yes that must be it !

farfromrefug commented 2 years ago

new android runtime in alpha. will.see if we can do a 8.1.2

timoschlueter commented 2 years ago

Would be great, @farfromrefug. I am hesitant of using an alpha-runtime in our production apps. :)

farfromrefug commented 2 years ago

@timoschlueter ask for it on discord. I am not the one making runtime releases

timoschlueter commented 2 years ago

will do. thank you!

relez commented 2 years ago

I get this error when I try to build for Android, looks like the plugin is trying to reach https://jcenter.bintray.com, see the image. Is it related to this plugin?

Screen Shot 2022-01-23 at 9 00 31 PM