@@ -49,4 +49,33 @@ Note: To prevent conflicts, do not commit or push this change anywhere.
<br>
## Error:
## Error: pub get failed
**Full error**:
> Because test >=1.24.1 <1.24.2 depends on test_api 0.5.1 and every version of flutter_test from sdk
> depends on test_api 0.4.16, test >=1.24.1 <1.24.2 is incompatible with flutter_test from sdk.
> So, because companion_app depends on both flutter_test from sdk and test 1.24.1, version solving failed.
> pub get failed
**Cause**: Flutter's versioning system can be fragile because of the way it handles dependencies. If two dependencies happen to depend on different versions of the same dependency For example, your project depends on A and B. Both A and B depend on C. However, A needs C 5.0, and B needs C 6.0. This means that using C 5.0 might break B, but using C 6.0 might break A. This can also happen if the only thing different about your installation is your version of Flutter, and happens to be a common cause of this issue in this repository.
**Solution**: Run `flutter --version` on your machine. Make sure that it is using Flutter version 3.10.0, as the repository is verified to work with that Flutter version. If that does not work, read the error message carefully and try to see what dependency is causing an issue. Feel free to experiment with a few different versions by editing pubspec.yaml, but DO NOT push your changes as this can break other developers' installations.
<br>
## If all else fails...
Open a terminal or command prompt and run the following command:
```
flutter doctor --verbose
```
Check your version of Flutter. Make sure that Flutter is at version 3.10.0.
Check your version of Java, under Android Toolchain. This is the version of Java that Flutter uses. Make sure that this is at version Java 17. If not, it can be tricky to update which version flutter uses. Try updating your version of Android Studio. If that does not work, try [this command](https://github.com/flutter/flutter/issues/106416#issuecomment-1522198064) as a workaround:
```
flutter config --android-studio-dir=/
```
This will make Flutter fall back to using the version of Java that's on your PATH. Type `java --version` in a terminal to make sure it's set to Java 17. If not, you may need to install Java 17 or modify your PATH to reflect this version.