Page 1 of 2

Android X issue

Posted: Wed Oct 14, 2020 10:43 am
by kathrine

Hi
I get this error.
This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the Gradle.properties file and retry.
Using Cordova Social Share Plugin.


Re: Android X issue

Posted: Tue Oct 20, 2020 12:13 pm
by Chris..

Hi Katherine,

I had the same issue. For me it only shows in Android, not iOS. And no, I don't have a solution yet.

I suspect Appery's response, if you get one, will simply be to point out that third-party plugins are outside the scope of their support.

Chris


Re: Android X issue

Posted: Tue Oct 20, 2020 8:03 pm
by Chris..

Hi Katherine,

Try installing these two Cordova plugins alongside social sharing:

cordova-plugin-androidx
cordova-plugin-androidx-adapter

..as outlined here: https://stackoverflow.com/questions/566 ... x-in-ionic

It works for me.

Chris


Re: Android X issue

Posted: Fri Oct 23, 2020 4:23 pm
by Serhii Kulibaba

Chris, thank you for the information!

Kathrine, could you please test it on your side? Does that solution fix the issue?


Re: Android X issue

Posted: Sat Jun 19, 2021 4:17 pm
by Jingg

Hi
I get this error.
This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the Gradle.properties file and retry.
Using Cordova Social Share Plugin.


Re: Android X issue

Posted: Tue Jun 29, 2021 2:44 pm
by western21

Chris, thank you for the information!

Kathrine, could you please test it on your side? Does that solution fix the issue.?


Re: Android X issue

Posted: Wed Oct 27, 2021 8:09 pm
by gochi88
western21 wrote: Tue Jun 29, 2021 2:44 pm

Chris, thank you for the information!

Kathrine, could you please test it on your side? Does that solution fix the issue.?

Thank you for your info.


Re: Android X issue

Posted: Sun Nov 14, 2021 8:36 pm
by Glendani
Chris.. wrote: Tue Oct 20, 2020 8:03 pm

Hi Katherine,

Try installing these two Cordova plugins alongside social sharing:

cordova-plugin-androidx
cordova-plugin-androidx-adapter

..as outlined here: https://stackoverflow.com/questions/566 ... x-in-ionic

It works for me.

Chris

Thanks for the solution, but it still doesn't work for me.


Re: Android X issue

Posted: Mon Jan 31, 2022 1:08 pm
by JohnWick128
kathrine wrote: Wed Oct 14, 2020 10:43 am

Hi
I get this error.
This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the Gradle.properties file and retry.
Using Cordova Social Share Plugin

Hello kathrine, I am also facing the sameissue with my I phone 11. Did you find out the solution yet??
Hoping for your reply asap...
??


Re: Android X issue

Posted: Mon Jan 31, 2022 5:25 pm
by Galyna Abramovych

Hello,

This issue is most likely connected with some plug-ins added but to get more details, we need to check the project.
And the possibility is high that upgrading to the most recent library versin will resolve this.