# Error: package android.support.v4.content does not exist

**URL:** <https://forum.ionicframework.com/t/error-package-android-support-v4-content-does-not-exist/190480>\
**Category:** Capacitor\
**Created:** [June 2, 2020, 7:51am UTC](https://forum.ionicframework.com/t/error-package-android-support-v4-content-does-not-exist/190480 "2020-06-02T07:51:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephenklop](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@stephenklop](https://forum.ionicframework.com/u/stephenklop)\
**Post date:** [June 2, 2020, 7:51am UTC](https://forum.ionicframework.com/t/error-package-android-support-v4-content-does-not-exist/190480/1 "2020-06-02T07:51:14Z")

</div>

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 android.support.v4.content does not exist  
public class FileProvider extends android.support.v4.content.FileProvider {}

Can anyone help me?

---

<div class="post-metadata">

**Author:** ![mirkonasato](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mirkonasato/32/131398_2.png) [@mirkonasato](https://forum.ionicframework.com/u/mirkonasato)\
**Post date:** [June 2, 2020, 9:12am UTC](https://forum.ionicframework.com/t/error-package-android-support-v4-content-does-not-exist/190480/2 "2020-06-02T09:12:19Z")

</div>

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](https://ionicframework.com/docs/native/file)? Are you aware that there’s a [Filesystem API](https://capacitor.ionicframework.com/docs/apis/filesystem) that comes with Capacitor?

---

<div class="post-metadata">

**Author:** ![miderose](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/miderose/32/81633_2.png) [@miderose](https://forum.ionicframework.com/u/miderose)\
**Post date:** [August 1, 2020, 4:06pm UTC](https://forum.ionicframework.com/t/error-package-android-support-v4-content-does-not-exist/190480/3 "2020-08-01T16:06:23Z")

</div>

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

```auto
/android/capacitor-cordova-android-plugins/src/main/java/org/apache/cordova/camera/CameraLauncher.java:40: error: package android.support.v4.content does not exist
import android.support.v4.content.FileProvider;

```

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

What should I do?  
Thanks!

---

<div class="post-metadata">

**Author:** ![rustysyris](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rustysyris/32/133593_2.png) [@rustysyris](https://forum.ionicframework.com/u/rustysyris)\
**Post date:** [August 21, 2020, 3:45am UTC](https://forum.ionicframework.com/t/error-package-android-support-v4-content-does-not-exist/190480/4 "2020-08-21T03:45:16Z")

</div>

I use “jetifier” for this on building my node\_modules. To rebuild I remove the node\_modules directory then run “npm i” to reinstall and jetifer will run after its complete and fixes those references.

> **[jetifier](https://www.npmjs.com/package/jetifier)**
>
> jetifier from Android Studio, in npm package format

Then in my package.json:

```auto
"scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "lint": "ng lint",
    "postinstall": "jetifier"
  }

```

---

<div class="post-metadata">

**Author:** ![ericdecoff](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@ericdecoff](https://forum.ionicframework.com/u/ericdecoff)\
**Post date:** [October 23, 2020, 10:52am UTC](https://forum.ionicframework.com/t/error-package-android-support-v4-content-does-not-exist/190480/5 "2020-10-23T10:52:37Z")

</div>

I solved the following with

> npm install -D jetifier

**package.json** ( changes )  
change line  
“build”: “ng build”  
change to  
“build”: “npx jetifier && ng build”

**NOTE:**  
“postinstall”:“npx jetifier”  
**DOES NOT WORK IN APPFLOW ATM ( 10/23/2020 )**
