如何修复找不到 gradle-8.1.0.jar

问题描述 投票:0回答:0

我已经在 Ubuntu 22.04 上下载了 android studio,当我制作第一个应用程序时,我遇到了以下问题,gradle 构建窗口显示:

A problem occurred configuring root project 'My Application'.   
 Could not resolve all files for configuration ':classpath'.   
    Could not find gradle-8.1.0.jar (com.android.tools.build:gradle:8.1.0).   
     Searched in the following locations:   
         https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/8.1.0/gradle-8.1.0.jar     
   Could not find bundletool-1.14.0.jar (com.android.tools.build:bundletool:1.14.0).      
     Searched in the following locations:     
         https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/1.14.0/bundletool-1.14.0.jar      

Possible solution:     
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html   

我该如何修复它。

android ubuntu gradle repository
© www.soinside.com 2019 - 2024. All rights reserved.