diff --git a/experimental/add_to_app/android_using_plugin/app/build.gradle b/experimental/add_to_app/android_using_plugin/app/build.gradle index 3221e78d7..246d692e0 100644 --- a/experimental/add_to_app/android_using_plugin/app/build.gradle +++ b/experimental/add_to_app/android_using_plugin/app/build.gradle @@ -30,8 +30,8 @@ dependencies { implementation project(':flutter') implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation 'androidx.appcompat:appcompat:1.0.2' - implementation 'androidx.core:core-ktx:1.0.2' + implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'androidx.core:core-ktx:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.0' diff --git a/experimental/add_to_app/android_using_plugin/app/src/main/java/dev/flutter/example/androidusingplugin/MainActivity.kt b/experimental/add_to_app/android_using_plugin/app/src/main/java/dev/flutter/example/androidusingplugin/MainActivity.kt index 63ae12e9b..ce9eecdbd 100644 --- a/experimental/add_to_app/android_using_plugin/app/src/main/java/dev/flutter/example/androidusingplugin/MainActivity.kt +++ b/experimental/add_to_app/android_using_plugin/app/src/main/java/dev/flutter/example/androidusingplugin/MainActivity.kt @@ -11,14 +11,13 @@ import androidx.appcompat.app.AppCompatActivity import io.flutter.embedding.android.FlutterActivity class MainActivity : AppCompatActivity() { - private var counterLabel: TextView? = null + private lateinit var counterLabel: TextView override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) counterLabel = findViewById(R.id.counter_label) - val button = findViewById