星期五gradle正常工作,今天我收到了此gradle错误:
DT::datatable(current_list,
rownames = FALSE,
filter = 'top',
options = list(pageLength = 50,lengthChange = FALSE,autoWidth = FALSE,escape=FALSE, searching = TRUE,
columnDefs = list(list(className = 'dt-center', targets = 0:1),
list(width = '30px', targets = 0:0),
list(width = '270px', targets = 1:1)
)
)
)
* 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
错误:
gradle --debug
我的应用程序build.gradle
...
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).
...
我的build.gradle版本:3.1.1
我的gradle发行版本:4.10
如何解决此问题?有什么问题吗?
答案 0 :(得分:8)
我编辑了android(项目级别)build.gradle文件并进行了更改
com.android.tools.build:gradle:3.2.1
到
com.android.tools.build:gradle:3.5.1
答案 1 :(得分:1)
问题是工件lib版本。我使用这个lib org.jfrog.buildinfo:build-info-extractor-gradle
,在最新版本4.9.1
中遇到了问题,而在4.9.0
中一切正常。
答案 2 :(得分:1)
只需在Android Studio中执行以下步骤
点击菜单栏中的文件
点击项目结构
将Android Gradle插件版本更改为3.5.1
再次同步
答案 3 :(得分:0)
尝试将以下内容添加到您的 TOP LEVEL (最高级别) build.gradle
System.setProperty("file.encoding", "UTF-8")
答案 4 :(得分:0)
我更改了gradle.build-Project的依赖项,如下所示:
<div class="container">
<div class="content"><!-- should be however big the container is-->
<div class = "mask"></div> <!-- should be in front of the entire content content -->
</div>
</div>