Role of Android API version

Answered

Hi there,

i develop Flutter mobile applications and wonder what is the role of the selected Android API version which i can choose/change in Project Structure → Modules → Tab Dependencies → Module SDK (shown in project hierarchy tree under External Libraries)?

Since the Android relevant versions (minSdk, compileSdk and targetSdk) are set in app/build.gradle i would be interested to know what impact the mentioned module SDK is (and what happens if i change it) ?

Thanks for your answer.

Best regards

Valentin

0
4 comments

Valentin Treu

 https://stackoverflow.com/questions/24510219/what-is-the-difference-between-min-sdk-version-target-sdk-version-vs-compile-sd Here has a lot of detailed discussion.

what impact the mentioned module SDK is (and what happens if i change it)

It's simple that the real module SDK version must equal or greater than the compileSdk and targetSdk version number.

The Flutter SDK it self has a supported Android SDK version range, usually you did't need to change it.

0

Ok thank you.

But what is the module SDK actually used for in my project, above all if i change the version?

When i open a Flutter project in VS Code i don't see any module SDK, therefore i wonder if that's a general artefact of IntelliJ and has nothing to do with a Flutter project.

0

If you only developing the Flutter app, you can safely ignore these settings in the Project Structure, these only useful when a Android developer want to edit some codes working only for Flutter Android app. BTW, please install this  https://plugins.jetbrains.com/plugin/9212-flutter plugin to develop flutter app. There are documents about how to use it: https://docs.flutter.dev/tools/android-studio .

If this is not your case, or you encounter any errors, please share me a screenshot or screencast.

0

Ok great, thanks for clarifying.

The Flutter plugin was one of the first i installed for my projects :-)

0

Please sign in to leave a comment.