Android打包APK报错Could not GET ‘https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gra

报错:Could not GET ‘https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/30.4.2/lint-gradle-30.4.2.jar’. Received status code 400 from server: Bad Request

或者
Could not GET ‘https://repo.maven.apache.org/maven2/com/android/tools/build/aapt2/7.4.2-8841542/aapt2-7.4.2-8841542.pom’. Received status code 400 from server: Bad Request

android打包apk报错Could not GET ‘https://maven.aliyun.com/repository/jcenter/junit/junit/4.12/junit-4.12.jar’. Received status code 400 from server: Bad Request
找到文件Android打包APK报错Could not GET ‘https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gra_第1张图片
把里面的代理注释掉

## For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
#
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx1024m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Wed Sep 11 10:41:15 CST 2024
#systemProp.http.proxyHost=mirrors.aliyun.com
#systemProp.http.proxyPort=80
#systemProp.https.proxyHost=mirrors.aliyun.com
#systemProp.https.proxyPort=80

重新编译

你可能感兴趣的:(android)