gpt4 book ai didi

android - Gradle 和 Android Studio 构建失败

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:59:34 25 4
gpt4 key购买 nike

我一直能够使用 Android Studio。我升级到 Gradle 版本 2.9 并且在构建时不断出现错误。我收到以下错误:

Gradle:
FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ScriptPluginFactory using
BuildScopeServices.createScriptObjectConfigurerFactory().

* Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.

我试过使用 --stacktrace--info 来运行它,但似乎没什么用。我应该将它发布在这里以获得帮助吗?

编辑(我的--调试输出):

19:39:58.668 [DEBUG]   
[org.gradle.internal.nativeintegration.services.NativeServices]
Unable to initialize native-platform.
Failure net.rubygrapefruit.platform.NativeException: Failed to load
native library 'libnative-platform.dylib' for Mac OS X x86_64.
caused by: java.io.FileNotFoundException:
/Users/Johnwon/.gradle/native/19/osx-amd64/libnative- platform.dylib.lock (Permission denied)
19:39:58.718 [DEBUG] [org.gradle.internal.nativeintegration.filesystem.services.FileSystemServices] Native-platform file system integration is not available. Continuing with fallback.
19:39:58.721 [DEBUG] [org.gradle.internal.nativeintegration.filesystem.services.FileSystemServices] Using UnsupportedSymlink implementation.
19:39:58.723 [DEBUG] [org.gradle.internal.nativeintegration.filesystem.services.FileSystemServices] Using JDK 7 file service org.gradle.internal.nativeintegration.filesystem.jdk7.PosixJdk7FilePermissionHandler
19:39:59.522 [DEBUG] [org.gradle.internal.resource.transport.http.JavaSystemPropertiesProxySettings] Found java system property 'http.nonProxyHosts': local|*.local|169.254/16|*.169.254/16. Will ignore proxy settings for these hosts.

最佳答案

如果似乎没有任何效果,则执行此操作

Just delete your .gradle folder

Located here C:\Users\username.gradle (for Windows)

关于android - Gradle 和 Android Studio 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34238782/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com