Can I use Navigate Compose whilst still Compiling for a Minimum SDK of 21?

Viewed 149

I'm having some trouble getting my app to compile whilst using Navigate-Compose, is it currently possible to produce apps for an SDK this low, or should I increase my minimum SDK?

1 Answers

Set the compileSdk version to 31 in your gradle.build file, such has this:

android {
    compileSdk 31
    
    defaultConfig {
    .....

Note that this won't affect the target minimum SDK version, that can still be as low as 21, it is just the version it will be compiled with.

Related