-
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
Use Android X dependencies #1937
Comments
just FYI i updated a 1.1.1 project to use Android X and updated all dependencies including Firebase and all looks good so far |
@nikmartin How did you do that? |
@nikmartin I would also like to know how you did that because I tried incorporating the Firebase Analytics sdk (17.2.0) which uses Android X and was unable to build it without some kind of error. |
please people, don't hijack the thread for your own questions |
according to a message in Capacitor slack, jetifier is able to patch plugins and even @capacitor/android
Going to unlock the thread so people can comment if they find issues with this approach on Cordova or Capacitor issues, but please, keep it on topic or I'll lock it again. |
@Nasicus use |
I see... what is correct now? With
However without the
Here is the sample project in which I tried to make it work (see the commit log for the commands I executed). |
without |
@Raerten Thanks again. I actually did it via Android Studio: Anyway after this I could indeed build & install the app again. Now I just have to do it with my real application, pray to god (for safety maybe sacrifice a baby goat) and hope that it works too... |
Hi Migrate to androidX will work on one system. After committing files nex env will not work and another Migrate will fail. |
Ah yeah, without the |
Well, I struggled with this 2 days now thanks to this thread I got it working, with androidX set to true. |
Work For Me thankssss |
This isn't working for me. When I run But I don't see any change and I'm still having the same issue |
Run |
Add below lines to gradle.properties to overcome this error android.useAndroidX=true |
@karthickbadrick you should open a new issue, not reply to this three year old, closed, unrelated issue |
Next major should be updated to use Android X (dependencies and code usage on @capacitor/android should be updated).
See if jetifier works on cordova/capacitor plugins, if not, the CLI should remap cordova plugins to use Android X on the update process, remapping dependencies and patching the code usages, and we might want to create a tool that works like jetifier that for Capacitor plugins.
The text was updated successfully, but these errors were encountered: