ionic3 打包 Could not get resource ‘https://jcenter.bintray.com/com/google/zxing/core/3.2.1/core-3.2.1

问题原因:

  个人认为 你网不好,和它不通

解决办法:

    进入你的工程下platforms\android,打开build.gradle文件,找到下面部分

    
 

allprojects {
    repositories {
        maven {
            url "https://maven.google.com"
        }
        jcenter()
    }
    //This replaces project.properties w.r.t. build settings
    project.ext {
      defaultBuildToolsVersion="27.0.1" //String
      defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
      defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
      defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
    }
}

  其中的allprojects 下的repositories 修改成

  

repositories {
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        jcenter { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
        google()
        jcenter()
 }

我的最后打包成功了

你可能感兴趣的:(ionic,Android开发,ionic,debug,打包,报错,下载失败)