79107547

Date: 2024-10-20 16:43:09
Score: 0.5
Natty:
Report link

So I have came across the same problem, the problem is that when you create a new flutter project. The framework doesn't add a "Build tools" on your app/build.gradle.

The solution to this is that you must add "buildToolsVersion = "34.0.0"" depending on the version of android sdk you're using. Then follow: Flutter : How to change Android minSdkVersion in Flutter Project? to update your flutter dev directory to the latest compileSdkVersion = 34, minSdkVersion = 21, and targetSdkVersion = 34.

It can be any sdk version on minSdkVersion, depending on your project target audience.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Lloyd Munyai