Flutter app crashing without any logs when building in debug mode.
Here are the several problems of the crashing flutter app when making a debug build.
First of all, it's always right to see the debugging messages. But what if the messages are not shown in default IDE?
First of all, it's always right to see the debugging messages. But what if the messages are not shown in default IDE?
Capturing debug log in Visual Studio Code
Press Ctrl + Shift + P and type Dart:Capture Logs and click OK
Now start debugging your code. Run > Start Debugging
You will see debug log messages which is useful to find out what went wrong!
For example, if you're using admob plugin, you need to declare AdmobAppID in manifest file and if you didn't your app may crassh.
Some possible cause of app crashings
Did you install new plugin and missing it's meta information in androidmanifest.xml?For example, if you're using admob plugin, you need to declare AdmobAppID in manifest file and if you didn't your app may crassh.
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="@string/admob_app_id"/>
Comments
Post a Comment