1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-17 04:18:14 +00:00

Fix add_to_app sample (#2768)

The android_view add_to_app sample is currently broken.  It does not build:

* AGP version is incompatible.
* MIN_SDK is below Flutter min
* Flutter plugin module was renamed awhile ago: https://github.com/flutter/samples/pull/2714
This commit is contained in:
Matt Boetger
2026-01-14 16:00:24 -08:00
committed by GitHub
parent 3c112d0efc
commit 344740a22c
3 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ android {
defaultConfig { defaultConfig {
applicationId "dev.flutter.example.androidView" applicationId "dev.flutter.example.androidView"
minSdkVersion 21 minSdkVersion 24
targetSdk 36 targetSdk 36
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"

View File

@@ -6,7 +6,7 @@ buildscript {
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:8.9.0' classpath 'com.android.tools.build:gradle:8.9.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong

View File

@@ -3,5 +3,5 @@ include ':app'
setBinding(new Binding([gradle: this])) setBinding(new Binding([gradle: this]))
evaluate(new File( evaluate(new File(
settingsDir.parentFile, settingsDir.parentFile,
'flutter_module_using_plugin/.android/include_flutter.groovy' 'flutter_module_using_plugin_android_view/.android/include_flutter.groovy'
)) ))