I am building ionic app, when I run ionic cordova add android
the android app is created successfully but when open it to build in using android studio I got errors in some activities that android.support.v4
not found and it is solved when changing it to androidx
, where should I change this settings from ionic application itself to avoid build issues in android studio?
as explained in docs , you need to wait for the plugin developers to fix it and in the meantime a workaround is to patch the plugin with jetifier:
npm install jetifier
npx jetify
npx cap sync android
If you want to change the plugin, you have a create a new custom plugin and copy their code into it and change it there, which is usually harder.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.