Android studio :connection timed out

Fermé
Joker_ Messages postés 173 Date d'inscription mardi 13 octobre 2009 Statut Membre Dernière intervention 20 janvier 2023 - 2 sept. 2018 à 14:27
Joker_ Messages postés 173 Date d'inscription mardi 13 octobre 2009 Statut Membre Dernière intervention 20 janvier 2023 - 6 sept. 2018 à 12:30
Bonjour,
Je suis nouveau développeur Android studio, l'étape build du mon premier projet hello world a échoué en affichant le message connection timed out. Tenant compte que ma connections Internet est sans proxy et le protocole '@ est dhcp. De plus quand j'active gradle offline l'étape building échoue aussi en indiquant que la version utilisée ne supporte pas le mode offline.


J'étais très motivé pour développer des applications Android mais cette erreur me fait arracher les cheveux ainsi détester le développement Android pffffff.....

Merci beaucoup de me sauver chers lecteur.

3 réponses

BunoCS Messages postés 15472 Date d'inscription lundi 11 juillet 2005 Statut Modérateur Dernière intervention 25 mars 2024 3 894
3 sept. 2018 à 11:43
Bonjour,

J'étais très motivé pour développer des applications Android mais cette erreur me fait arracher les cheveux ainsi détester le développement Android pffffff.....
Manque de persévérance, jeune padawan ?

Postes-nous ton fichier gradle pour voir
1
Joker_ Messages postés 173 Date d'inscription mardi 13 octobre 2009 Statut Membre Dernière intervention 20 janvier 2023 1
Modifié le 3 sept. 2018 à 15:52
Setting:

code "Build.gradle" :
apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {

applicationId "tn.tunisapp.rawabimobile"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

// paramètres proxy
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-rc02'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
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'
}



le message affiché après que je lance la commande make project ctrl+F9:

Executing tasks: [assemble]

Configuration on demand is an incubating feature.

FAILURE: Build failed with an exception.
  • What went wrong:A problem occurred configuring root project 'RawabiMobile'.> Could not resolve all artifacts for configuration ':classpath'. > Could not download builder.jar (com.android.tools.build:builder:3.1.4) > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.1.4/builder-3.1.4.jar'. > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.1.4/builder-3.1.4.jar'. Received status code 407 from server: Proxy Authentication Required > Could not download lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.4)..... > Could not get resource 'https://jcenter.bintray.com/org/glassfish/jaxb/txw2/2.2.11/txw2-2.2.11.jar'. > Could not GET 'https://jcenter.bintray.com/org/glassfish/jaxb/txw2/2.2.11/txw2-2.2.11.jar'. Received status code 407 from server: Proxy Authentication Required > Could not download istack-commons-runtime.jar (com.sun.istack:istack-commons-runtime:2.21) > Could not get resource 'https://jcenter.bintray.com/com/sun/istack/istack-commons-runtime/2.21/istack-commons-runtime-2.21.jar'. > Could not GET 'https://jcenter.bintray.com/com/sun/istack/istack-commons-runtime/2.21/istack-commons-runtime-2.21.jar'. Received status code 407 from server: Proxy Authentication Required* 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://gradle.org/help/BUILD FAILED in 0s
0