I imported flutter project from github into Android Studio with 'VCS -> Checkout from Version Control'. And now I'm facing the issue: Cannot resolve symbol FlutterActivity in android's MainActivity.java.
I created another flutter project with New Flutter Project wizard. And there was no that kind of issue. The difference between the two projects was that the project from github didn't have External Libraries/Flutter for Android/flutter.jar whereas created from scratch one had.
I compared pubspec.yaml and build.gradle files of both projects and didn't find anything that looks like related to that dependency.
Here the pubspec.yaml of the project in question:
name: utopian_rocks_mobile
description: A new Flutter project.
version: 1.0.0+1
environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
http: ^0.12.0
rxdart: ^0.19.0
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
How that kind of dependency supposed to be handled in a flutter project?
