I created a small app which worked fine on the android emulator so far (Pixel XL - API 33).
I wanted to try out google ads and added the google_mobile_ads: ^1.2.0
to the pubspec.yaml file. This caused a build error and told me that the minSDK needs to be at least 19 instead of 16.
I went into my flutter SDK folder and changed the minSdkVersion set in this file: flutter\packages\flutter_tools\gradle\flutter.gradle
Trying to build the app again created a new build error telling me that MultiDex needs to be enabled.
So I went into the project/android/app/build.gradle
and added multiDexEnabled true
to the default config block.
Now the app builds successfully but crashes on startup without any kind of message... Reverting the changes from above fixed it again.
Any ideas what I am doing wrong?