You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/10/13 13:47:21 UTC

[GitHub] [cordova-cli] breautek commented on issue #536: This project uses AndroidX dependencies, but the ‘android.useAndroidX’ property is not enabled

breautek commented on issue #536:
URL: https://github.com/apache/cordova-cli/issues/536#issuecomment-707749378


   You're seeing this error because you have a plugin that depends on androidx support libraries.
   
   As of `cordova-android@9` you can use the `AndroidXEnabled` preference to turn on androidx.
   
   `<preference name="AndroidXEnabled" value="true" />`
   
   When you enable androidx, any code using the old deprecated support libraries **will** break, as the androidx support libraries are incompatible with the old support libraries. You should be able to scan for `android.support` imports across your java source files to determine if there is any code depending on the old support libraries. If you don't have any, then you can probably stop reading.
   
   If you do have old support library references, then you may need to also include the [cordova-plugin-androidx-adapter](https://www.npmjs.com/package/cordova-plugin-androidx-adapter) plugin to upgrade any other plugins that are still using the old support libraries. Mileage may vary.
   
   Let me know if this helps.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org