Testing your plugin

The remaining steps address testing your plugin, which we encourage,
but aren’t required.

Update <plugin_name>/example/android/app/build.gradle
to replace references to android.support.test with androidx.test:

    
    
 defaultConfig {
   ...
   testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
   ...
 }
    

    
    
 dependencies {
 ...
 androidTestImplementation 'androidx.test:runner:1.2.0'
 androidTestImplementation 'androidx.test:rules:1.2.0'
 androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
 ...
 }

Add tests files for MainActivity and EmbeddingV1Activity
in <plugin_name>/example/android/app/src/androidTest/java/<plugin_path>/.
You will need to create these directories. For example: