Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gradle ASCII: A problem occurred evaluating project ':app'

Friday gradle works fine, today I got this gradle error:

* 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

error with 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).
...

my app build.gradle

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
  …
}

my build.gradle version: 3.1.1

my gradle distribution version: 4.10

How Can I solve this issue? What is the problem?

like image 310
capo11 Avatar asked Feb 11 '19 09:02

capo11


3 Answers

I edited the android (project level) build.gradle file and changed

com.android.tools.build:gradle:3.2.1

to

com.android.tools.build:gradle:3.5.1

like image 182
user2243481 Avatar answered Oct 21 '22 02:10

user2243481


Just Follow these Steps in Android Studio

Click on the file in the menu bar

click on Project Structure

change Android Gradle plugin version to 3.5.1

sync again

like image 23
Shailandra Rajput Avatar answered Oct 21 '22 03:10

Shailandra Rajput


The problem is with the Artifactory lib version. I use this lib org.jfrog.buildinfo:build-info-extractor-gradle and with the last version 4.9.1, I got the problem, whereas with the 4.9.0, all works fine.

like image 32
capo11 Avatar answered Oct 21 '22 03:10

capo11