You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by Zelfapp June 24, 2021 Install instructions mention a MainActivity.java file to update. However, my Flutter project has no MainActivity.java. The instructions need to be updated for how to handle this situation. Where do I put the MainActivity.java file if no file exists or do I update MainActivity.kt that does exist, and if so what is the code for that?
I've tried running flutter create . as many SO posts have suggested, but this does not create a MainActivity.java file in the project.
The contents of my android/app/src/main/kotlin/com/mysite/myapp/MainActivity.kt file:
package com.mysite.myapp
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
The text was updated successfully, but these errors were encountered:
The suggested changes to MainActivity.java seem to be unconditional with respect to the kind of build.
Presumably the debug app check provider should be referenced only in debug builds not release builds? But the instructions don't address how to do this.
Hi there, we fully accept PRs if anyone is able to produce a Kotlin sample and update the documentation. We already have an issue tracking this very problem: #2311
I'll close this and suggest a thumbs up for that issue. Thanks.
Discussed in #6467
Originally posted by Zelfapp June 24, 2021
Install instructions mention a MainActivity.java file to update. However, my Flutter project has no MainActivity.java. The instructions need to be updated for how to handle this situation. Where do I put the MainActivity.java file if no file exists or do I update MainActivity.kt that does exist, and if so what is the code for that?
I've tried running
flutter create .
as many SO posts have suggested, but this does not create a MainActivity.java file in the project.The contents of my android/app/src/main/kotlin/com/mysite/myapp/MainActivity.kt file:
The text was updated successfully, but these errors were encountered: