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
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() {
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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:
Beta Was this translation helpful? Give feedback.
All reactions