https://github.com/flutter/plugins/tree/master/packages/e2e#android-device-testing
Following this guide to a newly created (by flutter create) will result in fail:
+ ./gradlew app:assembleAndroidTest
> Task :app:compileDebugAndroidTestJavaWithJavac FAILED
/Users/minglyu/tmp/ftl_dev/android/app/src/androidTest/java/com/example/ftl_dev/MainActivityTest.java:11: error: cannot find symbo
public ActivityTestRule<MainActivity> rule = new ActivityTestRule<>(MainActivity.class, true, false);
^
symbol: class MainActivity
location: class MainActivityTest
/Users/minglyu/tmp/ftl_dev/android/app/src/androidTest/java/com/example/ftl_dev/MainActivityTest.java:11: error: cannot find symbol
public ActivityTestRule<MainActivity> rule = new ActivityTestRule<>(MainActivity.class, true, false);
^
symbol: class MainActivity
location: class MainActivityTest
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugAndroidTestJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.6.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 5s
It seems current flutter create is using kotlin but this guide is for java.
https://github.com/flutter/plugins/tree/master/packages/e2e#android-device-testing
Following this guide to a newly created (by
flutter create) will result in fail:It seems current
flutter createis using kotlin but this guide is for java.