Reputation: 6141
After upgrading to Flutter 3.29.0, Android build scripts have migrated to .kts
files. When trying to connect my project to Firebase using the flutterfire
CLI, I'm encountering a PathNotFoundException
:
PathNotFoundException: Cannot open file, path = 'D:\Flutter Projects\pin_park_field_app\android\build.gradle' (OS Error: The system cannot find the file specified., errno = 2)
The issue seems to be that the flutterfire
CLI is still looking for the old build.gradle
file, while the updated Flutter project uses build.gradle.kts
. How can I resolve this? Do I need to manually adjust the flutterfire
configuration, or should I wait for a flutterfire
CLI update that supports .kts
build scripts?
Upvotes: 0
Views: 115
Reputation: 1
flutterfire_cli
version 1.1.0 has been released, adding support for Gradle Kotlin DSL build files. To update run dart pub global activate flutterfire_cli
.
Upvotes: 0