Error

Flutter attach error: connection to device ended too early

Solution

Go to Settings > System > Developer options > Logger buffer sizes and choose a higher value.