diff --git a/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/build.gradle.tmpl b/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/build.gradle.tmpl index 4346c046a00..92ae48d736f 100644 --- a/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/build.gradle.tmpl +++ b/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/build.gradle.tmpl @@ -4,6 +4,12 @@ apply plugin: 'com.android.application' android { compileSdkVersion 27 + + compileOptions { + sourceCompatibility 1.8 + targetCompatibility 1.8 + } + defaultConfig { applicationId "{{androidIdentifier}}.host" minSdkVersion 16