Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leoalmirante opened this issue Dec 24, 2022 · 4 comments
Open

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

leoalmirante opened this issue Dec 24, 2022 · 4 comments

Comments

@leoalmirante
Copy link

This solution worked for me on Ionic 6 with Angular 14.

Please make the commit.

Hi all, please see a commit I've posted to our repo to resolve this:
mi-corporation@091a9b5

This is working for me, but I assume breaks building pre-AndroidX. Would be curious if it works for others.

Originally posted by @cdipierr in #283 (comment)

@leoalmirante leoalmirante changed the title Hi all, please see a commit I've posted to our repo to resolve this: Error: "package android.support.v4.content does not exist" Dec 24, 2022
@bilalsaeed
Copy link

Could you undo the change and add the following to app/build.gradle

packagingOptions {
pickFirst '**'
}

it should be added inside android like this

android {
packagingOptions {
pickFirst '**'
}

......
}

@bilalsaeed
Copy link

I was getting OS independant path issue and the above hack seemed to resolve the issue.

@rahulsharma841990
Copy link

Hi,

You can use `https://www.npmjs.com/package/jetifier` to convert it to androidx

use: npx jetifier

hope this will help someone

@Seth-Know
Copy link

This may also help someone.

Open file .\android\gradle.properties

Add this line:

android.enableJetifier=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants