Flutter learning error collection (1) After creating a Flutter project, open MainActivity and the Can't resolve symbol FlutterActivity error occurs

After creating a Flutter project, open MainActivity and the Can't resolve symbol FlutterActivity error occurs

Not much nonsense, a direct solution

Delete the android or ios folder in the project and run it in the terminal of the project

flutter create .to regenerate these directories

But, there is a problem. I originally wanted to develop in java language, and use this command to directly generate Kotlin language mode. . . . pending update

then. . Ha ha 

The default is the Kotlin language. Personally, I still like to use java to develop, use:

create -a java. Command can generate java language mode

Guess you like

Origin blog.csdn.net/zww986736788/article/details/104813244