Ionic 3 Android Build Error (could not find support-v4.jar)

前端 未结 4 732
广开言路
广开言路 2021-01-07 08:49

I have an Ionic 3 app that has built fine on dev machines for quite a while. Today we tried a new machine and it doesn\'t build there. It is using an older cordova-android

4条回答
  •  一生所求
    2021-01-07 09:27

    You have to do some modifications in your build.gradle file inside platforms/android as follows:

    allprojects { 
      repositories { 
        mavenCentral()
        maven { url 'https://maven.google.com' } //add this code
        jcenter() 
     } 
    }
    

    It's essential for new versions of google libraries. They moved their libraries out of the android SDK to the maven repo.

提交回复
热议问题