Vendredi, Gradle fonctionne bien, aujourd'hui j'ai cette erreur Gradle:
* Where:
Build file '...\git\project\app\build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':app'.
> ASCII
CONFIGURE FAILED in 4s
ASCII
erreur avec gradle --debug
:
...
10:29:50.018 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:29:50.018 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
10:29:50.018 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:29:50.018 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Where:
10:29:50.019 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Build file '...\git\project\project\build.gradle' line: 1
10:29:50.019 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:29:50.019 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
10:29:50.019 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred evaluating project ':app'.
10:29:50.019 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > ASCII
10:29:50.019 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:29:50.019 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
10:29:50.019 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --scan to get full insights.
10:29:50.019 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:29:50.019 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
10:29:50.019 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
10:29:50.019 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 1s
10:29:50.019 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1 completed (0 worker(s) in use)
10:29:50.019 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker: released lock on root.1
10:29:50.020 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Run build'
10:29:50.020 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Run build' completed
10:29:50.022 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-supplier (C:\Users\Utente\.gradle\caches\4.10\md-supplier)
10:29:50.023 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-supplier (C:\Users\Utente\.gradle\caches\4.10\md-supplier).
10:29:50.025 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-rule (C:\Users\Utente\.gradle\caches\4.10\md-rule)
10:29:50.025 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-rule (C:\Users\Utente\.gradle\caches\4.10\md-rule).
10:29:50.026 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
10:29:50.027 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
10:29:50.027 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 2 resolution results binary files in 0.001 secs
10:29:50.027 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles
10:29:50.028 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles
10:29:50.028 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file hash cache (...\git\project\.gradle\4.10\fileHashes)
10:29:50.028 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file hash cache (...\git\project\.gradle\4.10\fileHashes).
...
mon application build.gradle
apply plugin: 'com.Android.application'
apply plugin: 'io.fabric'
repositories {
…
}
ma version build.gradle: 3.1.1
ma version de distribution gradle: 4.10
Comment puis-je résoudre ce problème? Quel est le problème?
Le problème est la version lib artificielle. J'utilise cette lib org.jfrog.buildinfo:build-info-extractor-gradle
et avec la dernière version 4.9.1
J'ai eu le problème alors qu'avec le 4.9.0
tout fonctionne bien.
J'ai édité le fichier build.gradle Android (niveau projet)) et changé
com.Android.tools.build:gradle:3.2.1
à
com.Android.tools.build:gradle:3.5.1
Essayez d'ajouter ci-dessous à votre TOP LEVELbuild.gradle
System.setProperty("file.encoding", "UTF-8")
J'ai changé la dépendance à gradle.build - Projet comme suit:
dependencies {
classpath 'com.Android.tools.build:gradle:3.0.0'
classpath 'com.google.gms:google-services:3.1.0'
}