我安装了一台新电脑并尝试在其上构建特定的项目,但是尽管同步成功,但它却无法构建也无法打开应用程序。它尝试下载某些依赖项,但是...
我构建了一台新电脑并尝试在其上构建特定项目,但尽管同步成功,但它却无法构建并且无法打开应用程序。它尝试下载某些依赖项,但出现错误。我格式化了另一台电脑并尝试安装它,但出现相同的错误。在我的办公笔记本电脑上,该项目运行正常,在我同事的机器上也运行正常,这表明它不是代码、Maven 或任何其他依赖项的问题。
我已经尝试删除 gradle 并重新下载,以及 gradlew clean build --refresh-dependencies。我已经尝试再次克隆该项目。
有什么建议吗?
./gradlew clean build --refresh-dependencies --stacktrace
> Configure project :app
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileVitoriaReleaseKotlin'.
> Could not resolve all files for configuration ':app:homologDebugRuntimeClasspath'.
> Could not find com.google.android:flexbox:2.0.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/android/flexbox/2.0.0/flexbox-2.0.0.pom
-
Required by:
project :app > project :
project :app > project :
> Could not find com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5.
Searched in the following locations:
-
-
Required by:
project :app > project :
> Could not find org.jetbrains.anko:anko-commons:0.10.8.
Searched in the following locations:
-
Required by:
project :app > project :
> Could not find org.jetbrains.anko:anko-design:0.10.8.
Searched in the following locations:
-
Required by:
project :app > project :
> Could not find org.jetbrains.anko:anko:0.10.8.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/anko/anko/0.10.8/anko-0.10.8.pom
Required by:
project :app > project :
> Could not find org.jetbrains.anko:anko-appcompat-v7:0.10.8.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/anko/anko-appcompat-v7/0.10.8/anko-appcompat-v7-0.10.8.pom
Required by:
project :app > project :
> Could not find org.jetbrains.anko:anko-coroutines:0.10.8.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/anko/anko-coroutines/0.10.8/anko-coroutines-0.10.8.pom
Required by:
project :app > project :
> Could not find org.jetbrains.anko:anko-appcompat-v7-coroutines:0.10.8.
Searched in the following locations:
Required by:
project :app > project :
> Could not find com.jackandphantom.android:blurimage:1.2.0.
Searched in the following locations:
Required by:
project :app > project :
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
BUILD FAILED in 2m 8s