Closed AlibekJ closed 4 years ago
Hi @AlibekJ,
we have migrated our SDK to AndroidX dependencies, from version 5.0. Old support libraries are deprecated in 2018 when Google decided to do all new library development in the AndroidX library.
This error happens because cordova-plugin-camera uses deprecated com.android.support:support-v4:27.+. They should update the dependency.
Also there is Android Jettifier tool for transforming dependencies to AndroidX, you can enable it in the project's gradle.properties file by adding this flags (https://developer.android.com/jetpack/androidx/migrate):
android.useAndroidX=true
android.enableJetifier=true
but cordova-plugin-camera should update dependency to at least com.android.support:support-v4:28.0.0 for this to work.
Failing to build:
Problem
Environment
ubuntu 20.04, fresh plain vanilla cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1) cordova Platforms : android 8.1.0
Plugins: "blinkid-cordova": "^5.4.0", "cordova-android": "^8.1.0", "cordova-plugin-camera": "^4.1.0"
How to reproduce