Android studio gradle sync error with firebase : Response 204: No Content has no content












3















Since this morning i have trouble to sync my android project in android-studio.



When i try to do so, i get every time the same errors :
A part of the errors



All those errors are caused by the same problem :



Caused by: java.io.IOException: Response 204: No Content has no content!


And indeed, when trying to access manually to the address there is nothing
Example of one of them



Any idea if it is on my side or on google's/maven's ?



project build.gradle :



    repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:3.2.1"
classpath "com.google.gms:google-services:4.2.0"
}

allprojects {
repositories {
google()
jcenter()
}
}

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


Module build.gradle :



    apply plugin: "com.android.application"

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.tmproject.nviseur.ticketless_compagnon"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
buildToolsVersion "28.0.3"
}

dependencies {
implementation fileTree(include: ["*.jar"], dir: "libs")
implementation "com.android.support:appcompat-v7:28.0.0"
implementation "com.android.support:support-media-compat:28.0.0"
implementation "com.android.support:exifinterface:28.0.0"
implementation "com.android.support:support-v4:28.0.0"
implementation "com.android.support.constraint:constraint-layout:1.1.3"
testImplementation "junit:junit:4.12"
androidTestImplementation "com.android.support.test:runner:1.0.2"
androidTestImplementation "com.android.support.test.espresso:espresso-core:3.0.2"
implementation "com.google.firebase:firebase-core:16.0.5"
implementation "com.google.firebase:firebase-ml-vision:18.0.1"
implementation "com.journeyapps:zxing-android-embedded:3.6.0"
implementation "com.google.code.gson:gson:2.8.5"
}
apply plugin: "com.google.gms.google-services"









share|improve this question





























    3















    Since this morning i have trouble to sync my android project in android-studio.



    When i try to do so, i get every time the same errors :
    A part of the errors



    All those errors are caused by the same problem :



    Caused by: java.io.IOException: Response 204: No Content has no content!


    And indeed, when trying to access manually to the address there is nothing
    Example of one of them



    Any idea if it is on my side or on google's/maven's ?



    project build.gradle :



        repositories {
    google()
    jcenter()
    mavenCentral()
    }
    dependencies {
    classpath "com.android.tools.build:gradle:3.2.1"
    classpath "com.google.gms:google-services:4.2.0"
    }

    allprojects {
    repositories {
    google()
    jcenter()
    }
    }

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


    Module build.gradle :



        apply plugin: "com.android.application"

    android {
    compileSdkVersion 28
    defaultConfig {
    applicationId "com.tmproject.nviseur.ticketless_compagnon"
    minSdkVersion 19
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
    release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
    }
    }
    buildToolsVersion "28.0.3"
    }

    dependencies {
    implementation fileTree(include: ["*.jar"], dir: "libs")
    implementation "com.android.support:appcompat-v7:28.0.0"
    implementation "com.android.support:support-media-compat:28.0.0"
    implementation "com.android.support:exifinterface:28.0.0"
    implementation "com.android.support:support-v4:28.0.0"
    implementation "com.android.support.constraint:constraint-layout:1.1.3"
    testImplementation "junit:junit:4.12"
    androidTestImplementation "com.android.support.test:runner:1.0.2"
    androidTestImplementation "com.android.support.test.espresso:espresso-core:3.0.2"
    implementation "com.google.firebase:firebase-core:16.0.5"
    implementation "com.google.firebase:firebase-ml-vision:18.0.1"
    implementation "com.journeyapps:zxing-android-embedded:3.6.0"
    implementation "com.google.code.gson:gson:2.8.5"
    }
    apply plugin: "com.google.gms.google-services"









    share|improve this question



























      3












      3








      3








      Since this morning i have trouble to sync my android project in android-studio.



      When i try to do so, i get every time the same errors :
      A part of the errors



      All those errors are caused by the same problem :



      Caused by: java.io.IOException: Response 204: No Content has no content!


      And indeed, when trying to access manually to the address there is nothing
      Example of one of them



      Any idea if it is on my side or on google's/maven's ?



      project build.gradle :



          repositories {
      google()
      jcenter()
      mavenCentral()
      }
      dependencies {
      classpath "com.android.tools.build:gradle:3.2.1"
      classpath "com.google.gms:google-services:4.2.0"
      }

      allprojects {
      repositories {
      google()
      jcenter()
      }
      }

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


      Module build.gradle :



          apply plugin: "com.android.application"

      android {
      compileSdkVersion 28
      defaultConfig {
      applicationId "com.tmproject.nviseur.ticketless_compagnon"
      minSdkVersion 19
      targetSdkVersion 28
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
      release {
      minifyEnabled false
      proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
      }
      }
      buildToolsVersion "28.0.3"
      }

      dependencies {
      implementation fileTree(include: ["*.jar"], dir: "libs")
      implementation "com.android.support:appcompat-v7:28.0.0"
      implementation "com.android.support:support-media-compat:28.0.0"
      implementation "com.android.support:exifinterface:28.0.0"
      implementation "com.android.support:support-v4:28.0.0"
      implementation "com.android.support.constraint:constraint-layout:1.1.3"
      testImplementation "junit:junit:4.12"
      androidTestImplementation "com.android.support.test:runner:1.0.2"
      androidTestImplementation "com.android.support.test.espresso:espresso-core:3.0.2"
      implementation "com.google.firebase:firebase-core:16.0.5"
      implementation "com.google.firebase:firebase-ml-vision:18.0.1"
      implementation "com.journeyapps:zxing-android-embedded:3.6.0"
      implementation "com.google.code.gson:gson:2.8.5"
      }
      apply plugin: "com.google.gms.google-services"









      share|improve this question
















      Since this morning i have trouble to sync my android project in android-studio.



      When i try to do so, i get every time the same errors :
      A part of the errors



      All those errors are caused by the same problem :



      Caused by: java.io.IOException: Response 204: No Content has no content!


      And indeed, when trying to access manually to the address there is nothing
      Example of one of them



      Any idea if it is on my side or on google's/maven's ?



      project build.gradle :



          repositories {
      google()
      jcenter()
      mavenCentral()
      }
      dependencies {
      classpath "com.android.tools.build:gradle:3.2.1"
      classpath "com.google.gms:google-services:4.2.0"
      }

      allprojects {
      repositories {
      google()
      jcenter()
      }
      }

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


      Module build.gradle :



          apply plugin: "com.android.application"

      android {
      compileSdkVersion 28
      defaultConfig {
      applicationId "com.tmproject.nviseur.ticketless_compagnon"
      minSdkVersion 19
      targetSdkVersion 28
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
      release {
      minifyEnabled false
      proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
      }
      }
      buildToolsVersion "28.0.3"
      }

      dependencies {
      implementation fileTree(include: ["*.jar"], dir: "libs")
      implementation "com.android.support:appcompat-v7:28.0.0"
      implementation "com.android.support:support-media-compat:28.0.0"
      implementation "com.android.support:exifinterface:28.0.0"
      implementation "com.android.support:support-v4:28.0.0"
      implementation "com.android.support.constraint:constraint-layout:1.1.3"
      testImplementation "junit:junit:4.12"
      androidTestImplementation "com.android.support.test:runner:1.0.2"
      androidTestImplementation "com.android.support.test.espresso:espresso-core:3.0.2"
      implementation "com.google.firebase:firebase-core:16.0.5"
      implementation "com.google.firebase:firebase-ml-vision:18.0.1"
      implementation "com.journeyapps:zxing-android-embedded:3.6.0"
      implementation "com.google.code.gson:gson:2.8.5"
      }
      apply plugin: "com.google.gms.google-services"






      java android firebase android-studio gradle






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 21 '18 at 10:04









      Ali Khaki

      8041519




      8041519










      asked Nov 21 '18 at 9:23









      Nicolas ViseurNicolas Viseur

      207




      207
























          1 Answer
          1






          active

          oldest

          votes


















          2














          I have the same problem from this morning. It was working yesterday.



          I noticed that this problem is somehow only in android studio.
          When I build an app with command line, everything is ok.



          Command: ./gradlew clean assembleDebug (mac os)






          share|improve this answer
























          • After trying some more, it appear that i can build and execute the app, but it still cause the project window to not change to "dev" mode. I'll continue like that and if the problem disappear in the next few day I'll accept your answer as it let me know that it is not a problem on my side.

            – Nicolas Viseur
            Nov 21 '18 at 12:52













          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%2f53408816%2fandroid-studio-gradle-sync-error-with-firebase-response-204-no-content-has-no%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          I have the same problem from this morning. It was working yesterday.



          I noticed that this problem is somehow only in android studio.
          When I build an app with command line, everything is ok.



          Command: ./gradlew clean assembleDebug (mac os)






          share|improve this answer
























          • After trying some more, it appear that i can build and execute the app, but it still cause the project window to not change to "dev" mode. I'll continue like that and if the problem disappear in the next few day I'll accept your answer as it let me know that it is not a problem on my side.

            – Nicolas Viseur
            Nov 21 '18 at 12:52


















          2














          I have the same problem from this morning. It was working yesterday.



          I noticed that this problem is somehow only in android studio.
          When I build an app with command line, everything is ok.



          Command: ./gradlew clean assembleDebug (mac os)






          share|improve this answer
























          • After trying some more, it appear that i can build and execute the app, but it still cause the project window to not change to "dev" mode. I'll continue like that and if the problem disappear in the next few day I'll accept your answer as it let me know that it is not a problem on my side.

            – Nicolas Viseur
            Nov 21 '18 at 12:52
















          2












          2








          2







          I have the same problem from this morning. It was working yesterday.



          I noticed that this problem is somehow only in android studio.
          When I build an app with command line, everything is ok.



          Command: ./gradlew clean assembleDebug (mac os)






          share|improve this answer













          I have the same problem from this morning. It was working yesterday.



          I noticed that this problem is somehow only in android studio.
          When I build an app with command line, everything is ok.



          Command: ./gradlew clean assembleDebug (mac os)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 21 '18 at 12:25









          Michal KučeraMichal Kučera

          8116




          8116













          • After trying some more, it appear that i can build and execute the app, but it still cause the project window to not change to "dev" mode. I'll continue like that and if the problem disappear in the next few day I'll accept your answer as it let me know that it is not a problem on my side.

            – Nicolas Viseur
            Nov 21 '18 at 12:52





















          • After trying some more, it appear that i can build and execute the app, but it still cause the project window to not change to "dev" mode. I'll continue like that and if the problem disappear in the next few day I'll accept your answer as it let me know that it is not a problem on my side.

            – Nicolas Viseur
            Nov 21 '18 at 12:52



















          After trying some more, it appear that i can build and execute the app, but it still cause the project window to not change to "dev" mode. I'll continue like that and if the problem disappear in the next few day I'll accept your answer as it let me know that it is not a problem on my side.

          – Nicolas Viseur
          Nov 21 '18 at 12:52







          After trying some more, it appear that i can build and execute the app, but it still cause the project window to not change to "dev" mode. I'll continue like that and if the problem disappear in the next few day I'll accept your answer as it let me know that it is not a problem on my side.

          – Nicolas Viseur
          Nov 21 '18 at 12:52






















          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%2f53408816%2fandroid-studio-gradle-sync-error-with-firebase-response-204-no-content-has-no%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







          這個網誌中的熱門文章

          Xamarin.form Move up view when keyboard appear

          Post-Redirect-Get with Spring WebFlux and Thymeleaf

          Anylogic : not able to use stopDelay()