BUILD FAILEDTotal time: 27.317 secs* What went wrong:A problem occurred configuring root project 'android'.> Could not resolve all dependencies for configuration ':classpath'.   > Could not resolve com.android.tools.build:gradle:1.5.0.     Required by:         :android:unspecified      > Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/1.5.0/gradle-1.5.0.pom'.         > Connection to https://repo1.maven.org refused* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.Error: Error code 1 for command: cmd with args: /s,/c,"D:\gitrepo\private\bitbucket\mfewordcard2\platforms\android\gradlew cdvBuildDebug -b D:\gitrepo\private\bitbucket\mfewordcard2\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true" 

可以通过如下解决:

ionic platform add android 之后,在ionic build android 之前,请手工修改 \platforms\android目录 和 \platforms\android\CordovaLib 目录下的 build.gradle文件,

mavenCentral()
改成
jcenter {url "http://jcenter.bintray.com/"}

更多相关文章

  1. Android之调用js常见错误
  2. Android上的ril库
  3. Android中登录布局展示Activity
  4. Android:FontMetrics详解
  5. Unity3d 调用Android震动
  6. Android通过Mainfest设置Theme实现布局全屏
  7. Android(安卓)发送短信功能
  8. Android(安卓)ProgressBar 进度条
  9. android自定义带图片的title

随机推荐

  1. 函数的参数和返回值问题以及模板字面量和
  2. 通过Setters方式对日期属性及日期格式进
  3. 初识HTML标签功能
  4. 通过Setters方式对日期属性及日期格式进
  5. 访问JSP文件或者Servlet文件时提示下载的
  6. JSP程序使用JDBC连接MySQL的教程
  7. 实例演示函数参数与返回值、演示模板字面
  8. 1. 实例演示函数参数与返回值 2. 实例演
  9. 常用函数类型和数据类型
  10. 移动端布局实操