cordova-plugin-camera
cordova-plugin-camera copied to clipboard
Support for Android 3.x and Jetpack
Building a Cordova App that uses Android 3.x and Jetpack does not build with the below errors:
- Error:(25, 34) error: package android.support.v4.content does not exist
I'm not able to change the compile target version (28) which looks like a solution that others have made. Any other suggestions?
Thanks.
+1 Seeing this issue too.
seeing it as well, is there a workaround?
In order to support jetpack's format, dependency
android.support.v4.content
should be changed to androidx.loader.content
FYI: https://developer.android.com/jetpack/androidx/migrate
Thanks @stck! From Android Studio I clicked Refactor > Migrate to AndroidX. After the scan, I clicked 'Do Refactor', and was then able to build to Android device again.
Hi there 👋 I have opened a PR for migrating to AndroidX: https://github.com/apache/cordova-plugin-camera/pull/418
cordova-android
supports AndroidX since version 9.0. Are there any plans to move this plugin to AndroidX instead of support library?
Version 6 of the plugin uses AndroidX https://github.com/apache/cordova-plugin-camera/pull/751