Android Studio: how to check if I have code which calls functions/properties not available in minSdkVersion?

时间:2017-04-06 17:11:49

标签: java android android-studio

I wonder how to check if I have code which calls functions/properties not available in minSdkVersion.

For example, I want to avoid to call a function available only in API 25 in an app designed for API 15 and higher.

I would like to get easily a list of all the places where this kind of error happens.

Thanks for your help.

1 个答案:

答案 0 :(得分:0)

您可以使用Analyze - >检查Android Studio中的代码。 查看Android> Lint>正确性"在旧版本上调用新方法"部分。