Ionic cordova 构建错误无法解析配置“:classpath”的所有工件无法下载 com.android.tools.build:builder:3.3.0

Ionic cordova build error Could not resolve all artifacts for configuration ':classpath' Could not download com.android.tools.build:builder:3.3.0

我有一个 Ionic cordova android 项目,直到上周五我使用的 vpn 开始出现问题时,该项目一直运行良好,现在我只能在隐身模式下使用 windscribe 进行连接。这种连接真的很糟糕,因为它每次我 运行

$ ionic cordova build android

我收到这个错误

BUILD FAILED in 1m 45s /project/platforms/android/gradlew: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring root project 'android'.

Could not resolve all artifacts for configuration ':classpath'. Could not download builder-3.3.0.jar (com.android.tools.build:builder:3.3.0) > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.3.0/builder-3.3.0.jar'. > Connection reset

我想知道有没有办法解决这个问题?也许手动下载此 android 生成器并将其放在某个文件夹中?

你说对了!它确实与您的互联网连接、VPN 或您网络上的某些防火墙有关。所以它无法下载依赖项来生成构建...它因为限制而被阻止。