Andrew Fletcher published: 1 August 2022 1 minute read
Android Studio error
error: package android.support.v4.content does not existThis is a problem with plugins using old Android support dependencies instead of the AndroidX equivalent. As it's a dependency issue, to resolve add jetifier. I know yet another package...
npm install jetifier
npx jetify
npx cap sync
Tools
Ionic CLI : 6.20.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.2.0
@angular-devkit/build-angular : 14.1.0
@angular-devkit/schematics : 14.1.0
@angular/cli : 14.1.0
@ionic/angular-toolkit : 7.0.0
Capacitor:
Capacitor CLI : 4.0.1
@capacitor/android : 4.0.1
@capacitor/core : 4.0.1
@capacitor/ios : 4.0.1
Cordova:
Cordova CLI : 11.0.0
Cordova Platforms : android 11.0.0, ios 6.2.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 6 other plugins)
Utility:
cordova-res : 0.15.4
native-run : 1.6.0
System:
ios-deploy : 1.12.0
ios-sim : 8.0.2
NodeJS : v18.7.0 (/usr/local/Cellar/node/18.7.0/bin/node)
npm : 8.15.0
OS : macOS Big Sur
Xcode : Xcode 13.2.1 Build version 13C100