-
Notifications
You must be signed in to change notification settings - Fork 1k
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” #1663
Comments
Are you using Android Studio 3.4 and gradle 5.1.1? Might be related to that, I have not tested with those versions and you have updated |
I do use Studio 3.4.1, but I don't know about Gradle. What version specificly do I have to update where? Have zero Android experience. |
When you added android platform, the first time you opened it in Android Studio it probably asked you if you wanted to update dependencies and you clicked yes, so it automatically updated But anyway, this is something we should fix if it's related to that. |
I'm seeing this too. I can confirm that the issue happens once you upgrade the android project. The issue happens in the capacitor package, since it imports
in:
In my case is Gradle 3.4.1 and Android Studio 3.4 |
Have the same as @alterx |
I updated Android Studio and gradle and still couldn't reproduce. But today testing a different thing I got a similar error where gradle wasn't finding a package and deleting |
Same probleme with : |
I am also facing the exact same issue but with |
currently i'm facing a problem following version error:
so when i open the file file |
Same here on Linux Android Studio. |
Hi All, Please install below plugin , it's 100% working. if Ionic 3/4 any. ionic cordova plugin add cordova-plugin-androidx-adapter Normal cordova cordova plugin add cordova-plugin-androidx-adapter |
I solved this. Thank you ! |
Looks like it's related to some plugin using Android X. Capacitor 2.0 will support Android X |
I have the same problem Affected platform Android macOS // Top-level build file where you can add configuration options common to all sub-projects/modules. Capacitor version: |
Workaround: |
I already migrated to android X however I keep presenting the same problem the app does not compile in android, in ios it works. |
Also, have this issue with Android X |
SOLUTION TO using jetify helped to solve . from @ jcesarmobile' s post --- >#2832 Error: "package android.support.* does not exist" As workaround you can also patch the plugin using jetifier npm install jetifier |
I upgrade to AndroidX. In local, it works, but when you run dependencies {
implementation project(':capacitor-analytics')
implementation project(':capacitor-firebase-auth')
- implementation 'androidx.legacy:legacy-support-v4:1.0.0'
+ implementation "com.android.support:support-v4:27.+"
} In local I can rollback this automatic change, but in AppFlow I'm not able to build. |
I'm using capacitor v2 |
thx dude |
I solved this. Thank you! |
It works!! I just install cordova Camera with capacitor |
**Working on Ionic 5. |
Yes, this resolved my issue. Thanks you save my day |
Thank you! |
Thank You |
thank you so much...... it worked for me |
Description of the problem:
When trying to build the SDK with Android Studio on Mac I get:
“error: package android.support.v4.content does not exist”
Affected platform
OS of the development machine
Other information:
The
build.gradle
Capacitor version:
1.0.0
node version:
v12.1.0
npm version:
6.9.0
CocoaPods version:
It's Android that's giving issues
Steps to reproduce:
Probably a bug in my system, so don't know how to reproduce it somewhere else.
Link to sample project:
Don't have it
The text was updated successfully, but these errors were encountered: