Unable to get dependencies from jcenter with a new project












19















I'm unable to get kotlin pom from jcenter with a new project.



All I have done is gone File->New Project and created a new project with no activity.



I'm getting the following error when it tries to build:



ERROR: Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.21/kotlin-stdlib-jdk8-1.3.21.pom'. Received status code 502 from server: Bad Gateway Enable Gradle 'offline mode' and sync project


My build.gradle



// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()

}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


If I go in my web browser to that URL I can't connect either. https://jcenter.bintray.com/



Does this mean the site is temporarily down or is there something I need to add to my build files?



BTW I selected Java for the project and not Kotlin on setup if that matters so not even sure why it's trying to get kotlin stuff.










share|improve this question

























  • I'm experiencing this as well and thought it was very weird. Since I'm not the only one, I'm thinking it may be temporary

    – Chisko
    yesterday











  • maybe we should not upgrade the gradle to 3.3.2 yet

    – Alfred Angkasa
    yesterday











  • @ישואוהבאותך Just a query about your closure, surely it would have been better to close the other question as a dupe of this one? This one was posted sooner and has a higher vote count.

    – Michael Dodd
    yesterday











  • @MichaelDodd: Okay, you're right. I'll close the newest one and post an answer here.

    – ישו אוהב אותך
    yesterday













  • seems working right now

    – Basi
    yesterday
















19















I'm unable to get kotlin pom from jcenter with a new project.



All I have done is gone File->New Project and created a new project with no activity.



I'm getting the following error when it tries to build:



ERROR: Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.21/kotlin-stdlib-jdk8-1.3.21.pom'. Received status code 502 from server: Bad Gateway Enable Gradle 'offline mode' and sync project


My build.gradle



// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()

}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


If I go in my web browser to that URL I can't connect either. https://jcenter.bintray.com/



Does this mean the site is temporarily down or is there something I need to add to my build files?



BTW I selected Java for the project and not Kotlin on setup if that matters so not even sure why it's trying to get kotlin stuff.










share|improve this question

























  • I'm experiencing this as well and thought it was very weird. Since I'm not the only one, I'm thinking it may be temporary

    – Chisko
    yesterday











  • maybe we should not upgrade the gradle to 3.3.2 yet

    – Alfred Angkasa
    yesterday











  • @ישואוהבאותך Just a query about your closure, surely it would have been better to close the other question as a dupe of this one? This one was posted sooner and has a higher vote count.

    – Michael Dodd
    yesterday











  • @MichaelDodd: Okay, you're right. I'll close the newest one and post an answer here.

    – ישו אוהב אותך
    yesterday













  • seems working right now

    – Basi
    yesterday














19












19








19


5






I'm unable to get kotlin pom from jcenter with a new project.



All I have done is gone File->New Project and created a new project with no activity.



I'm getting the following error when it tries to build:



ERROR: Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.21/kotlin-stdlib-jdk8-1.3.21.pom'. Received status code 502 from server: Bad Gateway Enable Gradle 'offline mode' and sync project


My build.gradle



// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()

}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


If I go in my web browser to that URL I can't connect either. https://jcenter.bintray.com/



Does this mean the site is temporarily down or is there something I need to add to my build files?



BTW I selected Java for the project and not Kotlin on setup if that matters so not even sure why it's trying to get kotlin stuff.










share|improve this question
















I'm unable to get kotlin pom from jcenter with a new project.



All I have done is gone File->New Project and created a new project with no activity.



I'm getting the following error when it tries to build:



ERROR: Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.21/kotlin-stdlib-jdk8-1.3.21.pom'. Received status code 502 from server: Bad Gateway Enable Gradle 'offline mode' and sync project


My build.gradle



// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()

}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


If I go in my web browser to that URL I can't connect either. https://jcenter.bintray.com/



Does this mean the site is temporarily down or is there something I need to add to my build files?



BTW I selected Java for the project and not Kotlin on setup if that matters so not even sure why it's trying to get kotlin stuff.







android android-gradle jcenter






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









ישו אוהב אותך

16k84260




16k84260










asked yesterday









user8810083user8810083

229112




229112













  • I'm experiencing this as well and thought it was very weird. Since I'm not the only one, I'm thinking it may be temporary

    – Chisko
    yesterday











  • maybe we should not upgrade the gradle to 3.3.2 yet

    – Alfred Angkasa
    yesterday











  • @ישואוהבאותך Just a query about your closure, surely it would have been better to close the other question as a dupe of this one? This one was posted sooner and has a higher vote count.

    – Michael Dodd
    yesterday











  • @MichaelDodd: Okay, you're right. I'll close the newest one and post an answer here.

    – ישו אוהב אותך
    yesterday













  • seems working right now

    – Basi
    yesterday



















  • I'm experiencing this as well and thought it was very weird. Since I'm not the only one, I'm thinking it may be temporary

    – Chisko
    yesterday











  • maybe we should not upgrade the gradle to 3.3.2 yet

    – Alfred Angkasa
    yesterday











  • @ישואוהבאותך Just a query about your closure, surely it would have been better to close the other question as a dupe of this one? This one was posted sooner and has a higher vote count.

    – Michael Dodd
    yesterday











  • @MichaelDodd: Okay, you're right. I'll close the newest one and post an answer here.

    – ישו אוהב אותך
    yesterday













  • seems working right now

    – Basi
    yesterday

















I'm experiencing this as well and thought it was very weird. Since I'm not the only one, I'm thinking it may be temporary

– Chisko
yesterday





I'm experiencing this as well and thought it was very weird. Since I'm not the only one, I'm thinking it may be temporary

– Chisko
yesterday













maybe we should not upgrade the gradle to 3.3.2 yet

– Alfred Angkasa
yesterday





maybe we should not upgrade the gradle to 3.3.2 yet

– Alfred Angkasa
yesterday













@ישואוהבאותך Just a query about your closure, surely it would have been better to close the other question as a dupe of this one? This one was posted sooner and has a higher vote count.

– Michael Dodd
yesterday





@ישואוהבאותך Just a query about your closure, surely it would have been better to close the other question as a dupe of this one? This one was posted sooner and has a higher vote count.

– Michael Dodd
yesterday













@MichaelDodd: Okay, you're right. I'll close the newest one and post an answer here.

– ישו אוהב אותך
yesterday







@MichaelDodd: Okay, you're right. I'll close the newest one and post an answer here.

– ישו אוהב אותך
yesterday















seems working right now

– Basi
yesterday





seems working right now

– Basi
yesterday












9 Answers
9






active

oldest

votes


















10














jcenter is currently down. In the end adding mavenCentral() to both sets of repositories in the project build.gradle file worked as a workaround for me:



buildscript {
repositories {
mavenCentral()
google()
jcenter()


...



allprojects {
repositories {
mavenCentral()
google()
jcenter()


...






share|improve this answer


























  • I've just tested it. It works. I think you should mark this as an accepted answer.

    – Hau Luu
    yesterday













  • Not working for me.

    – MateenSheikh
    yesterday











  • @MateenSheikh , do you still get the same error? What does your build file look like?

    – user8810083
    yesterday













  • @HauLuu I have to wait 2 days to mark my own answer as accepted

    – user8810083
    yesterday











  • @user8810083 jcenter is working fine now so issue is resolved.

    – MateenSheikh
    yesterday



















3














This can be fixed by downgrading the gradle plugin version to 3.3.1 in the project's gradle file:



classpath 'com.android.tools.build:gradle:3.3.1'





share|improve this answer
























  • doesn't seem to be working for me

    – Saurabh
    yesterday











  • @Saurabh can you be more specific?

    – Chisko
    yesterday











  • @Chisko I'm still getting the same error as OP

    – Saurabh
    yesterday











  • this didn't work for me, but see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

    – user8810083
    yesterday











  • this gives me a read timeout error.

    – Vikas Kumar
    yesterday



















3














Downgrade Gradle version is not a good fix for me. I did google around and found this. Jcenter is dead. For now.



https://status.bintray.com/?fbclid=IwAR3NLsnuGA5xqbFhcPsVLWX2c9TG40JWQcDYM7RTVsDm0qDSQvfjmhabhPg



I think all we can do is wait.






share|improve this answer



















  • 1





    see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

    – user8810083
    yesterday











  • The server is broken! I did a completely fresh install of android studio and can't create a new project

    – Benjamin
    yesterday













  • @Benjamin , adding mavenCentral as repository is a workaround for now

    – user8810083
    yesterday



















2














There is a problem in Downloads section with Partial Outage in jfrog bintray (https://status.bintray.com/incidents/2wvx6d5f807c):




Intermittent download issues in Bintray




You can see the current status in https://status.bintray.com/





Update Status from jfrog Bintray:



Update - There are still intermittent download issues in Oregon region (north America). We are still working on identifying the root cause. 
Mar 21, 10:02 UTC





share|improve this answer

































    1














    replace jcenter() with mavenCentral()
    because jcenter is not available now






    share|improve this answer































      1














      Actually android studio already had the solution for you :



      Syncing only active variant
      You can disable this experimental feature from
      File → Settings → Experimental → Gradle → Only sync the active variant






      share|improve this answer








      New contributor




      Ahmad Zuhair Dzulfiqor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




























        1














        I have same issue, and I tried aliyun maven in this issue's answer,



        jcenter 502 bad gateway after gradle refresh



        and it works. So I temporary use this for building app.






        share|improve this answer

































          0














          Add this to dependencies block



          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21"





          share|improve this answer
























          • Maybe the OP doesn't need Kotlin support

            – Chisko
            yesterday



















          0














          Actually jcenter currently is down, you can check it with this link and this twitter hashtag for more information.






          share|improve this answer



















          • 3





            This has already been mentioned several times

            – Zoe
            yesterday











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55276279%2funable-to-get-dependencies-from-jcenter-with-a-new-project%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          9 Answers
          9






          active

          oldest

          votes








          9 Answers
          9






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          10














          jcenter is currently down. In the end adding mavenCentral() to both sets of repositories in the project build.gradle file worked as a workaround for me:



          buildscript {
          repositories {
          mavenCentral()
          google()
          jcenter()


          ...



          allprojects {
          repositories {
          mavenCentral()
          google()
          jcenter()


          ...






          share|improve this answer


























          • I've just tested it. It works. I think you should mark this as an accepted answer.

            – Hau Luu
            yesterday













          • Not working for me.

            – MateenSheikh
            yesterday











          • @MateenSheikh , do you still get the same error? What does your build file look like?

            – user8810083
            yesterday













          • @HauLuu I have to wait 2 days to mark my own answer as accepted

            – user8810083
            yesterday











          • @user8810083 jcenter is working fine now so issue is resolved.

            – MateenSheikh
            yesterday
















          10














          jcenter is currently down. In the end adding mavenCentral() to both sets of repositories in the project build.gradle file worked as a workaround for me:



          buildscript {
          repositories {
          mavenCentral()
          google()
          jcenter()


          ...



          allprojects {
          repositories {
          mavenCentral()
          google()
          jcenter()


          ...






          share|improve this answer


























          • I've just tested it. It works. I think you should mark this as an accepted answer.

            – Hau Luu
            yesterday













          • Not working for me.

            – MateenSheikh
            yesterday











          • @MateenSheikh , do you still get the same error? What does your build file look like?

            – user8810083
            yesterday













          • @HauLuu I have to wait 2 days to mark my own answer as accepted

            – user8810083
            yesterday











          • @user8810083 jcenter is working fine now so issue is resolved.

            – MateenSheikh
            yesterday














          10












          10








          10







          jcenter is currently down. In the end adding mavenCentral() to both sets of repositories in the project build.gradle file worked as a workaround for me:



          buildscript {
          repositories {
          mavenCentral()
          google()
          jcenter()


          ...



          allprojects {
          repositories {
          mavenCentral()
          google()
          jcenter()


          ...






          share|improve this answer















          jcenter is currently down. In the end adding mavenCentral() to both sets of repositories in the project build.gradle file worked as a workaround for me:



          buildscript {
          repositories {
          mavenCentral()
          google()
          jcenter()


          ...



          allprojects {
          repositories {
          mavenCentral()
          google()
          jcenter()


          ...







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday









          ישו אוהב אותך

          16k84260




          16k84260










          answered yesterday









          user8810083user8810083

          229112




          229112













          • I've just tested it. It works. I think you should mark this as an accepted answer.

            – Hau Luu
            yesterday













          • Not working for me.

            – MateenSheikh
            yesterday











          • @MateenSheikh , do you still get the same error? What does your build file look like?

            – user8810083
            yesterday













          • @HauLuu I have to wait 2 days to mark my own answer as accepted

            – user8810083
            yesterday











          • @user8810083 jcenter is working fine now so issue is resolved.

            – MateenSheikh
            yesterday



















          • I've just tested it. It works. I think you should mark this as an accepted answer.

            – Hau Luu
            yesterday













          • Not working for me.

            – MateenSheikh
            yesterday











          • @MateenSheikh , do you still get the same error? What does your build file look like?

            – user8810083
            yesterday













          • @HauLuu I have to wait 2 days to mark my own answer as accepted

            – user8810083
            yesterday











          • @user8810083 jcenter is working fine now so issue is resolved.

            – MateenSheikh
            yesterday

















          I've just tested it. It works. I think you should mark this as an accepted answer.

          – Hau Luu
          yesterday







          I've just tested it. It works. I think you should mark this as an accepted answer.

          – Hau Luu
          yesterday















          Not working for me.

          – MateenSheikh
          yesterday





          Not working for me.

          – MateenSheikh
          yesterday













          @MateenSheikh , do you still get the same error? What does your build file look like?

          – user8810083
          yesterday







          @MateenSheikh , do you still get the same error? What does your build file look like?

          – user8810083
          yesterday















          @HauLuu I have to wait 2 days to mark my own answer as accepted

          – user8810083
          yesterday





          @HauLuu I have to wait 2 days to mark my own answer as accepted

          – user8810083
          yesterday













          @user8810083 jcenter is working fine now so issue is resolved.

          – MateenSheikh
          yesterday





          @user8810083 jcenter is working fine now so issue is resolved.

          – MateenSheikh
          yesterday













          3














          This can be fixed by downgrading the gradle plugin version to 3.3.1 in the project's gradle file:



          classpath 'com.android.tools.build:gradle:3.3.1'





          share|improve this answer
























          • doesn't seem to be working for me

            – Saurabh
            yesterday











          • @Saurabh can you be more specific?

            – Chisko
            yesterday











          • @Chisko I'm still getting the same error as OP

            – Saurabh
            yesterday











          • this didn't work for me, but see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

            – user8810083
            yesterday











          • this gives me a read timeout error.

            – Vikas Kumar
            yesterday
















          3














          This can be fixed by downgrading the gradle plugin version to 3.3.1 in the project's gradle file:



          classpath 'com.android.tools.build:gradle:3.3.1'





          share|improve this answer
























          • doesn't seem to be working for me

            – Saurabh
            yesterday











          • @Saurabh can you be more specific?

            – Chisko
            yesterday











          • @Chisko I'm still getting the same error as OP

            – Saurabh
            yesterday











          • this didn't work for me, but see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

            – user8810083
            yesterday











          • this gives me a read timeout error.

            – Vikas Kumar
            yesterday














          3












          3








          3







          This can be fixed by downgrading the gradle plugin version to 3.3.1 in the project's gradle file:



          classpath 'com.android.tools.build:gradle:3.3.1'





          share|improve this answer













          This can be fixed by downgrading the gradle plugin version to 3.3.1 in the project's gradle file:



          classpath 'com.android.tools.build:gradle:3.3.1'






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          ChiskoChisko

          1,94251835




          1,94251835













          • doesn't seem to be working for me

            – Saurabh
            yesterday











          • @Saurabh can you be more specific?

            – Chisko
            yesterday











          • @Chisko I'm still getting the same error as OP

            – Saurabh
            yesterday











          • this didn't work for me, but see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

            – user8810083
            yesterday











          • this gives me a read timeout error.

            – Vikas Kumar
            yesterday



















          • doesn't seem to be working for me

            – Saurabh
            yesterday











          • @Saurabh can you be more specific?

            – Chisko
            yesterday











          • @Chisko I'm still getting the same error as OP

            – Saurabh
            yesterday











          • this didn't work for me, but see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

            – user8810083
            yesterday











          • this gives me a read timeout error.

            – Vikas Kumar
            yesterday

















          doesn't seem to be working for me

          – Saurabh
          yesterday





          doesn't seem to be working for me

          – Saurabh
          yesterday













          @Saurabh can you be more specific?

          – Chisko
          yesterday





          @Saurabh can you be more specific?

          – Chisko
          yesterday













          @Chisko I'm still getting the same error as OP

          – Saurabh
          yesterday





          @Chisko I'm still getting the same error as OP

          – Saurabh
          yesterday













          this didn't work for me, but see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

          – user8810083
          yesterday





          this didn't work for me, but see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

          – user8810083
          yesterday













          this gives me a read timeout error.

          – Vikas Kumar
          yesterday





          this gives me a read timeout error.

          – Vikas Kumar
          yesterday











          3














          Downgrade Gradle version is not a good fix for me. I did google around and found this. Jcenter is dead. For now.



          https://status.bintray.com/?fbclid=IwAR3NLsnuGA5xqbFhcPsVLWX2c9TG40JWQcDYM7RTVsDm0qDSQvfjmhabhPg



          I think all we can do is wait.






          share|improve this answer



















          • 1





            see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

            – user8810083
            yesterday











          • The server is broken! I did a completely fresh install of android studio and can't create a new project

            – Benjamin
            yesterday













          • @Benjamin , adding mavenCentral as repository is a workaround for now

            – user8810083
            yesterday
















          3














          Downgrade Gradle version is not a good fix for me. I did google around and found this. Jcenter is dead. For now.



          https://status.bintray.com/?fbclid=IwAR3NLsnuGA5xqbFhcPsVLWX2c9TG40JWQcDYM7RTVsDm0qDSQvfjmhabhPg



          I think all we can do is wait.






          share|improve this answer



















          • 1





            see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

            – user8810083
            yesterday











          • The server is broken! I did a completely fresh install of android studio and can't create a new project

            – Benjamin
            yesterday













          • @Benjamin , adding mavenCentral as repository is a workaround for now

            – user8810083
            yesterday














          3












          3








          3







          Downgrade Gradle version is not a good fix for me. I did google around and found this. Jcenter is dead. For now.



          https://status.bintray.com/?fbclid=IwAR3NLsnuGA5xqbFhcPsVLWX2c9TG40JWQcDYM7RTVsDm0qDSQvfjmhabhPg



          I think all we can do is wait.






          share|improve this answer













          Downgrade Gradle version is not a good fix for me. I did google around and found this. Jcenter is dead. For now.



          https://status.bintray.com/?fbclid=IwAR3NLsnuGA5xqbFhcPsVLWX2c9TG40JWQcDYM7RTVsDm0qDSQvfjmhabhPg



          I think all we can do is wait.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          Hau LuuHau Luu

          1491214




          1491214








          • 1





            see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

            – user8810083
            yesterday











          • The server is broken! I did a completely fresh install of android studio and can't create a new project

            – Benjamin
            yesterday













          • @Benjamin , adding mavenCentral as repository is a workaround for now

            – user8810083
            yesterday














          • 1





            see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

            – user8810083
            yesterday











          • The server is broken! I did a completely fresh install of android studio and can't create a new project

            – Benjamin
            yesterday













          • @Benjamin , adding mavenCentral as repository is a workaround for now

            – user8810083
            yesterday








          1




          1





          see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

          – user8810083
          yesterday





          see the answer I just posted. Just adding mavenCentral() to both sets of repositories works for me now

          – user8810083
          yesterday













          The server is broken! I did a completely fresh install of android studio and can't create a new project

          – Benjamin
          yesterday







          The server is broken! I did a completely fresh install of android studio and can't create a new project

          – Benjamin
          yesterday















          @Benjamin , adding mavenCentral as repository is a workaround for now

          – user8810083
          yesterday





          @Benjamin , adding mavenCentral as repository is a workaround for now

          – user8810083
          yesterday











          2














          There is a problem in Downloads section with Partial Outage in jfrog bintray (https://status.bintray.com/incidents/2wvx6d5f807c):




          Intermittent download issues in Bintray




          You can see the current status in https://status.bintray.com/





          Update Status from jfrog Bintray:



          Update - There are still intermittent download issues in Oregon region (north America). We are still working on identifying the root cause. 
          Mar 21, 10:02 UTC





          share|improve this answer






























            2














            There is a problem in Downloads section with Partial Outage in jfrog bintray (https://status.bintray.com/incidents/2wvx6d5f807c):




            Intermittent download issues in Bintray




            You can see the current status in https://status.bintray.com/





            Update Status from jfrog Bintray:



            Update - There are still intermittent download issues in Oregon region (north America). We are still working on identifying the root cause. 
            Mar 21, 10:02 UTC





            share|improve this answer




























              2












              2








              2







              There is a problem in Downloads section with Partial Outage in jfrog bintray (https://status.bintray.com/incidents/2wvx6d5f807c):




              Intermittent download issues in Bintray




              You can see the current status in https://status.bintray.com/





              Update Status from jfrog Bintray:



              Update - There are still intermittent download issues in Oregon region (north America). We are still working on identifying the root cause. 
              Mar 21, 10:02 UTC





              share|improve this answer















              There is a problem in Downloads section with Partial Outage in jfrog bintray (https://status.bintray.com/incidents/2wvx6d5f807c):




              Intermittent download issues in Bintray




              You can see the current status in https://status.bintray.com/





              Update Status from jfrog Bintray:



              Update - There are still intermittent download issues in Oregon region (north America). We are still working on identifying the root cause. 
              Mar 21, 10:02 UTC






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited yesterday

























              answered yesterday









              ישו אוהב אותךישו אוהב אותך

              16k84260




              16k84260























                  1














                  replace jcenter() with mavenCentral()
                  because jcenter is not available now






                  share|improve this answer




























                    1














                    replace jcenter() with mavenCentral()
                    because jcenter is not available now






                    share|improve this answer


























                      1












                      1








                      1







                      replace jcenter() with mavenCentral()
                      because jcenter is not available now






                      share|improve this answer













                      replace jcenter() with mavenCentral()
                      because jcenter is not available now







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered yesterday









                      MasterMaster

                      112




                      112























                          1














                          Actually android studio already had the solution for you :



                          Syncing only active variant
                          You can disable this experimental feature from
                          File → Settings → Experimental → Gradle → Only sync the active variant






                          share|improve this answer








                          New contributor




                          Ahmad Zuhair Dzulfiqor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.

























                            1














                            Actually android studio already had the solution for you :



                            Syncing only active variant
                            You can disable this experimental feature from
                            File → Settings → Experimental → Gradle → Only sync the active variant






                            share|improve this answer








                            New contributor




                            Ahmad Zuhair Dzulfiqor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.























                              1












                              1








                              1







                              Actually android studio already had the solution for you :



                              Syncing only active variant
                              You can disable this experimental feature from
                              File → Settings → Experimental → Gradle → Only sync the active variant






                              share|improve this answer








                              New contributor




                              Ahmad Zuhair Dzulfiqor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.










                              Actually android studio already had the solution for you :



                              Syncing only active variant
                              You can disable this experimental feature from
                              File → Settings → Experimental → Gradle → Only sync the active variant







                              share|improve this answer








                              New contributor




                              Ahmad Zuhair Dzulfiqor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.









                              share|improve this answer



                              share|improve this answer






                              New contributor




                              Ahmad Zuhair Dzulfiqor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.









                              answered yesterday









                              Ahmad Zuhair DzulfiqorAhmad Zuhair Dzulfiqor

                              111




                              111




                              New contributor




                              Ahmad Zuhair Dzulfiqor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.





                              New contributor





                              Ahmad Zuhair Dzulfiqor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.






                              Ahmad Zuhair Dzulfiqor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.























                                  1














                                  I have same issue, and I tried aliyun maven in this issue's answer,



                                  jcenter 502 bad gateway after gradle refresh



                                  and it works. So I temporary use this for building app.






                                  share|improve this answer






























                                    1














                                    I have same issue, and I tried aliyun maven in this issue's answer,



                                    jcenter 502 bad gateway after gradle refresh



                                    and it works. So I temporary use this for building app.






                                    share|improve this answer




























                                      1












                                      1








                                      1







                                      I have same issue, and I tried aliyun maven in this issue's answer,



                                      jcenter 502 bad gateway after gradle refresh



                                      and it works. So I temporary use this for building app.






                                      share|improve this answer















                                      I have same issue, and I tried aliyun maven in this issue's answer,



                                      jcenter 502 bad gateway after gradle refresh



                                      and it works. So I temporary use this for building app.







                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited 21 hours ago

























                                      answered yesterday









                                      TingTing

                                      25026




                                      25026























                                          0














                                          Add this to dependencies block



                                          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21"





                                          share|improve this answer
























                                          • Maybe the OP doesn't need Kotlin support

                                            – Chisko
                                            yesterday
















                                          0














                                          Add this to dependencies block



                                          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21"





                                          share|improve this answer
























                                          • Maybe the OP doesn't need Kotlin support

                                            – Chisko
                                            yesterday














                                          0












                                          0








                                          0







                                          Add this to dependencies block



                                          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21"





                                          share|improve this answer













                                          Add this to dependencies block



                                          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21"






                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered yesterday









                                          DemonickDemonick

                                          1,51022231




                                          1,51022231













                                          • Maybe the OP doesn't need Kotlin support

                                            – Chisko
                                            yesterday



















                                          • Maybe the OP doesn't need Kotlin support

                                            – Chisko
                                            yesterday

















                                          Maybe the OP doesn't need Kotlin support

                                          – Chisko
                                          yesterday





                                          Maybe the OP doesn't need Kotlin support

                                          – Chisko
                                          yesterday











                                          0














                                          Actually jcenter currently is down, you can check it with this link and this twitter hashtag for more information.






                                          share|improve this answer



















                                          • 3





                                            This has already been mentioned several times

                                            – Zoe
                                            yesterday
















                                          0














                                          Actually jcenter currently is down, you can check it with this link and this twitter hashtag for more information.






                                          share|improve this answer



















                                          • 3





                                            This has already been mentioned several times

                                            – Zoe
                                            yesterday














                                          0












                                          0








                                          0







                                          Actually jcenter currently is down, you can check it with this link and this twitter hashtag for more information.






                                          share|improve this answer













                                          Actually jcenter currently is down, you can check it with this link and this twitter hashtag for more information.







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered yesterday









                                          pahlevikunpahlevikun

                                          163




                                          163








                                          • 3





                                            This has already been mentioned several times

                                            – Zoe
                                            yesterday














                                          • 3





                                            This has already been mentioned several times

                                            – Zoe
                                            yesterday








                                          3




                                          3





                                          This has already been mentioned several times

                                          – Zoe
                                          yesterday





                                          This has already been mentioned several times

                                          – Zoe
                                          yesterday


















                                          draft saved

                                          draft discarded




















































                                          Thanks for contributing an answer to Stack Overflow!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid



                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.


                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function () {
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55276279%2funable-to-get-dependencies-from-jcenter-with-a-new-project%23new-answer', 'question_page');
                                          }
                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          數位音樂下載

                                          When can things happen in Etherscan, such as the picture below?

                                          格利澤436b