Error: package does not exist

Hey everyone,
Currently I am using the ionic file plugin in capacitor. When I want to build this app I keep getting the following errors:

error: package does not exist
public class FileProvider extends {}

Can anyone help me?

Capacitor 2.x uses AndroidX so I guess any plugin that uses the older Android support libraries won’t work.

Which plugin are you using exactly? The Ionic Native one? Are you aware that there’s a Filesystem API that comes with Capacitor?

Hi! Same error, when I try to build for Android with Ionic Package:

/android/capacitor-cordova-android-plugins/src/main/java/org/apache/cordova/camera/ error: package does not exist

I saw it’s because Camera plugin uses AndroidX, but I am not able to find how to fix the issue! :frowning:

What should I do?