Home > Back-end >  How can I use androdx at api android level less than 28?
How can I use androdx at api android level less than 28?

Time:10-01

everyone, i am a newbe in the Android development (java, android studio). I want to create an app with minSDKversion 25. Am I correct in understanding that I can't use AndroidX for this and accordingly "implementations" as Firebase and similar required Android API 28 and higher? And is it possible to combine in one project a version that supports com.android.support and androidx dependencies?

CodePudding user response:

I suggest to update minSDKversion = 25 to minSDKversion = 28.
And Migrate to androidx because now days support libary is androidx. Visit:https://developer.android.com/jetpack/androidx

You can't combine project that can support both com.android.support and androidx dependencies because it leads to compilation and many exceptions error.

CodePudding user response:

-> As Android moved towards MAD skills so its not possible to combine android x with simple android lib

-> you can set it minSdk 25 compileSdk 28 and target should be 28 in your gradle app level file

  • Related