Flutterflow build failed
# support
i
Trying to add the Vapi flutter SDK i get this error in Flutterflow: Build failed Error Getting Packages Check the following custom dependencies: vapi: ^0.0.9. Because every version of vapi depends on provider ^6.1.1 and my_project depends on provider 6.0.5, vapi is forbidden. So, because my_project depends on vapi ^0.0.9, version solving failed. I tried to add also a more recent provider version but that breaks 68 packages in Flutterflow so I guess it's not the right way. Has anyone successfully integrated VAPI with Flutterflow?
v
@iamjackharper It seems like you're encountering a dependency conflict between the
vapi
package and the
provider
package within your Flutterflow project. The
vapi
package requires a version of
provider
that is more recent than the one currently used in your project. To resolve this issue, you have a couple of options: 1. **Update the
provider
package**: If possible, update the
provider
package to version
^6.1.1
or higher in your
pubspec.yaml
file. However, as you mentioned, this might break other packages in Flutterflow. If you choose to update, you'll need to ensure that all other dependencies are compatible with the new version of
provider
. 2. **Use dependency overrides**: You can force the use of a specific version of
provider
by using dependency overrides in your
pubspec.yaml
file. This is a temporary solution and should be used with caution, as it may cause unexpected behavior in your app. Here's how you can use dependency overrides:
Copy code
yaml
dependency_overrides:
  provider: ^6.1.1
3. **Contact Flutterflow support**: Since Flutterflow is a platform with its own constraints and dependencies, it might be helpful to reach out to their support team for guidance on integrating third-party packages like
vapi
. 4. **Wait for a compatible version**: If updating the
provider
package is not an option and you cannot use dependency overrides, you may need to wait for a version of
vapi
that is compatible with
provider
6.0.5 or for Flutterflow to update their dependencies. Remember to always backup your project before making changes to dependencies to avoid losing any work. If you need further assistance with integrating VAPI into your Flutterflow project, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
i
I guess it's something Flutterflow needs to solve on their end, but has anyone successfully integrated VAPI with Flutterflow? If so, how?
s
It would be best if you could ask this question in the General Section or during the Vapi Office Hour, which is going to happen tomorrow.
i
Ok thank you, I ask there
j
Was this ever resolved?
n
any update on this? @User