famba limited
famba limited

Reputation: 11

i dont know why i am getting an error while using flutter fire configure

I tried to run flutterfire configure after using flutter login to log into my account, but I get this error message after inputting my android app ID:

PathNotFoundException: Cannot open file, path = '/Users/hgs/Desktop/Flutter/flutter_projects/todo_app2/android/build.gradle' (OS Error: No such file or directory, errno = 2)

I don't know why this is coming up. I checked my file and the only build.gradle I can see is in build.gradle.kts. I guess that's why my command is not executing.

How can I solve this?

Upvotes: 1

Views: 84

Answers (1)

Chibuike
Chibuike

Reputation: 11

I had this same issue and I was able to solve it by renaming my build.gradle.kts to build.gradle was the same as the settings page in the Android folder, and after that I could run the 'flutterfire configure' command in the terminal without getting any errors.

Upvotes: 1

Related Questions