Skip to content

Commit 344740a

Browse files
authored
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: #2714
1 parent 3c112d0 commit 344740a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

add_to_app/android_view/android_view/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ android {
1212

1313
defaultConfig {
1414
applicationId "dev.flutter.example.androidView"
15-
minSdkVersion 21
15+
minSdkVersion 24
1616
targetSdk 36
1717
versionCode 1
1818
versionName "1.0"
@@ -55,4 +55,4 @@ dependencies {
5555
testImplementation 'junit:junit:4.+'
5656
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
5757
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
58-
}
58+
}

add_to_app/android_view/android_view/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
mavenCentral()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.9.0'
9+
classpath 'com.android.tools.build:gradle:8.9.1'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111

1212
// NOTE: Do not place your application dependencies here; they belong
@@ -23,4 +23,4 @@ allprojects {
2323

2424
tasks.register('clean', Delete) {
2525
delete rootProject.buildDir
26-
}
26+
}

add_to_app/android_view/android_view/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ include ':app'
33
setBinding(new Binding([gradle: this]))
44
evaluate(new File(
55
settingsDir.parentFile,
6-
'flutter_module_using_plugin/.android/include_flutter.groovy'
6+
'flutter_module_using_plugin_android_view/.android/include_flutter.groovy'
77
))

0 commit comments

Comments
 (0)