If you are trying out the URL launcher in Android and the device API is 30+, try adding the query intent outside of the application tag in the Android Manifest.
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
</queries>
Note: Use a stable Gradle version greater than 4 and update the studio to the latest version.
You can refer to: https://pub.dev/packages/url_launcher#android