Add <meta-data android:name="flutterEmbedding" android:value="2"/>
to the <plugin_name>/example/android/app/src/main/AndroidManifest.xml.
This sets the example app to use the v2 embedding.

(Optional) If you created an EmbeddingV1Activity
in the previous step, add the EmbeddingV1Activity to the
<plugin_name>/example/android/app/src/main/AndroidManifest.xml file.
For example:

    
    
 <activity
     android:name=".EmbeddingV1Activity"
     android:theme="@style/LaunchTheme"
         android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale"
     android:hardwareAccelerated="true"
     android:exported="true"
     android:windowSoftInputMode="adjustResize">
 </activity>

Testing your plugin