'android.useAndroidX' property is not enabled

shane picture shane · May 4, 2020 · Viewed 18.6k times · Source

okay, so this is the first time I'm working with SDKs,

I'm using the zoom SDK from here https://marketplace.zoom.us/docs/sdk/native-sdks/android/getting-started

and I'm trying to run the sample APK as mentioned in the documentation and it returns the error "This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled" https://i.stack.imgur.com/taM6c.png

and I have searched and found a solution to this where I turn the android project into an androidX project by using the following in the Gradle.properties file:

android.useAndroidX=true
android.enableJetifier=true

HERE IS WHERE THE ISSUE LIES

the SDK doesn't have any Gradle.properties file, and hence i don't know where to insert the above code for now, I have inserted the above code in the following files: https://i.stack.imgur.com/Ktj4j.png

and yet the issue still exists, can I please get some help on this? thanks in advance!

Answer

linjiejun picture linjiejun · Nov 3, 2020

Added this into gradle.properties files solve my problem.

android.useAndroidX=true
android.enableJetifier=true