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

package android.support.v7.app does not exist #236

Open
alekbarszczewski opened this issue Dec 6, 2020 · 7 comments
Open

package android.support.v7.app does not exist #236

alekbarszczewski opened this issue Dec 6, 2020 · 7 comments

Comments

@alekbarszczewski
Copy link

I have problem building app using this plugin, I get following errors:

MultiImageChooserActivity.java:65: error: package android.support.v7.app does not exist
import android.support.v7.app.ActionBar;
MultiImageChooserActivity.java:66: error: package android.support.v7.app does not exist
import android.support.v7.app.AppCompatActivity;
ImagePicker.java:23: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
ImagePicker.java:24: error: package android.support.v4.content does not exist
import android.support.v4.content.ContextCompat;

When I edit those files in android studio and change those imports to following then it works:

import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;

What can I do to permanently fix this issue?
Sorry for my ignorance but I am not mobile/android developer and just trying to make hybrid app with https://quasar.dev/ / vue / capacitor / cordova. I looked for some solutions but most of them was just to use androidx instead of "legacy" libraries / sdks...

@iamtarun1993
Copy link

I resolved this by following this steps
$npm install --save-dev jetifier
$npx jetify
$npx cap sync
$npx cap copy

@hoisel
Copy link

hoisel commented May 12, 2021

I resolved this by following this steps
$npm install --save-dev jetifier
$npx jetify
$npx cap sync
$npx cap copy

Thank you!

@clarklight
Copy link

clarklight commented Aug 23, 2021

I ran the npx commands and it calls command not found, even i ran it as admin....
I believe because i am using cordova? And those are commands for telerik/Ionic?
It would be great if we can have an updated version with the change of those 4 lines.

Thanks

@contfedorov
Copy link

cordova-plugin-androidx-adapter should help.

@djaramilloj
Copy link

I resolved this by following this steps $npm install --save-dev jetifier $npx jetify $npx cap sync $npx cap copy

Thankssss!

@SOFTMEET
Copy link

Stil not working

@clarklight
Copy link

Stil not working

I went into the JAVA and changed the code directly. Then it works.

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

7 participants