cordova-plugin-camera icon indicating copy to clipboard operation
cordova-plugin-camera copied to clipboard

Support for Android 3.x and Jetpack

Open alsocalledchris opened this issue 6 years ago • 6 comments

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.

alsocalledchris avatar Jan 09 '19 20:01 alsocalledchris

+1 Seeing this issue too.

dfattlar avatar Jan 15 '19 14:01 dfattlar

seeing it as well, is there a workaround?

pbergner avatar Jan 15 '19 16:01 pbergner

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

stck avatar Jan 28 '19 11:01 stck

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.

dfattlar avatar Jan 28 '19 19:01 dfattlar

Hi there 👋 I have opened a PR for migrating to AndroidX: https://github.com/apache/cordova-plugin-camera/pull/418

davidschreiber avatar Jan 31 '19 07:01 davidschreiber

cordova-android supports AndroidX since version 9.0. Are there any plans to move this plugin to AndroidX instead of support library?

contfedorov avatar Apr 06 '21 09:04 contfedorov

Version 6 of the plugin uses AndroidX https://github.com/apache/cordova-plugin-camera/pull/751

jcesarmobile avatar Sep 14 '22 20:09 jcesarmobile