How to find all the errors

41 views Asked by At

I have an Android app and I'm trying to make it working on an older device.

I decreased the minSdk in the build.gradle file and it compiles fine but when I run it, it crashes because of Call requires API level 24 (current min is 22): java.util.List#sort.

I tried to add @RequiresApi(N) annotation hoping to be able to detect all these errors at compile time but it is not.

Is there a smart solution to quickly find out all them?

0

There are 0 answers