wujie696 2019-07-14 09:49 采纳率: 0%
浏览 855

求教:vs2017 Cordova打包报错 Could not resolve com.android.to

图片说明

具体错误内容如下:

1>MSBUILD : cordova-build error : * What went wrong:
1>MSBUILD : cordova-build error : A problem occurred configuring root project 'android'.
1>MSBUILD : cordova-build error : > Could not resolve all dependencies for configuration ':classpath'.
1>MSBUILD : cordova-build error : > Could not resolve com.android.tools.build:gradle:2.1.0.
1>MSBUILD : cordova-build error : Required by:
1>MSBUILD : cordova-build error : :android:unspecified
1>MSBUILD : cordova-build error : > Could not resolve com.android.tools.build:gradle:2.1.0.
1>MSBUILD : cordova-build error : > Could not get resource 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'.
1>MSBUILD : cordova-build error : > Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'.
1>MSBUILD : cordova-build error : > Received fatal alert: protocol_version
1>MSBUILD : cordova-build error : > Could not resolve com.android.tools.build:gradle:2.1.0.
1>MSBUILD : cordova-build error : > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'.
1>MSBUILD : cordova-build error : > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'.
1>MSBUILD : cordova-build error : > Remote host closed connection during handshake
1>MSBUILD : cordova-build error : * Try:
1>MSBUILD : cordova-build error : Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Command finished with error code 1: cmd /s /c ""D:\VSCODE\Long.Learun.Framework.7.0.2\Code\Learun.Framework V7.01 pro\Learun.Application.Mobile\platforms\android\gradlew.bat" cdvBuildDebug -b "D:\VSCODE\Long.Learun.Framework.7.0.2\Code\Learun.Framework V7.01 pro\Learun.Application.Mobile\platforms\android\build.gradle" -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
1>MSBUILD : cordova-build error : Error: cmd: Command failed with exit code 1 Error output:

  • 写回答

2条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥30 用arduino开发esp32控制ps2手柄一直报错
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 求chat4.0解答一道线性规划题,用lingo编程运行,第一问要求写出数学模型和lingo语言编程模型,第二问第三问解答就行,我的ddl要到了谁来求了
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题