Android Studio Gradle与Firebase的同步错误:响应204:无内容无内容 [英] Android studio gradle sync error with firebase : Response 204: No Content has no content
问题描述
从今天早上开始,我一直无法在android-studio中同步我的android项目.
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
是否知道是在我这边还是在Google/maven的身边?
Any idea if it is on my side or on google's/maven's ?
项目build.gradle:
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
}
模块build.gradle:
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"
推荐答案
从今天早上开始,我遇到了同样的问题.昨天在工作.
I have the same problem from this morning. It was working yesterday.
我注意到这个问题只在android studio中才有. 当我使用命令行构建应用程序时,一切正常.
I noticed that this problem is somehow only in android studio. When I build an app with command line, everything is ok.
命令:./gradlew clean assembleDebug
(mac os)
Command: ./gradlew clean assembleDebug
(mac os)
这篇关于Android Studio Gradle与Firebase的同步错误:响应204:无内容无内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!