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

前端 未结 4 782
广开言路
广开言路 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:39

    This happened to me as well, today. It compiled two days ago and now the build fails. I did not change anything to the project or config. It may be because google moved their libraries to maven but what can we do about this?

    WARNING: Module 'com.android.support:support-v4:26.1.0' depends on one or more Android Libraries but is a jar

    BUILD FAILED

    Total time: 2.87 secs FAILURE: Build failed with an exception.

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

      Could not find support-v4.jar (com.android.support:support-v4:26.1.0). Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. cmd: 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 find support-v4.jar (com.android.support:support-v4:26.1.0). Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

提交回复
热议问题