# Flutter - unable to use amity sdk

**URL:** https://forum.social.plus/t/flutter-unable-to-use-amity-sdk/587
**Category:** General
**Created:** [November 25, 2022, 2:09pm UTC](https://forum.social.plus/t/flutter-unable-to-use-amity-sdk/587 "2022-11-25T14:09:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jdde](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jdde](https://forum.social.plus/u/jdde)
#### Post date: [November 25, 2022, 2:09pm UTC](https://forum.social.plus/t/flutter-unable-to-use-amity-sdk/587/1 "2022-11-25T14:09:18Z")

</div>

When adding the pub.dev amity sdk in v0.12.0, you get an error with init’ ing the get\_it variables.

It’s impossible to work with it as a dependency.  
“Exception has occurred. \_AssertionError (‘package:get\_it/get\_it\_impl.dart’: Failed assertion: line 404 pos 9: ‘instanceFactory.isReady’: You tried to access an instance of MessageDbAdapter that is not ready yet)”

Would be great if that could be fixed asap, since we can’t continue our integration, without commenting that line out in your sdk. Which is not usable for production.

Thank you very much!  
Best regards, Jörn

---

<div class="post-metadata">

### Author: ![Sorbh](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@Sorbh](https://forum.social.plus/u/Sorbh)
#### Post date: [November 25, 2022, 5:27pm UTC](https://forum.social.plus/t/flutter-unable-to-use-amity-sdk/587/2 "2022-11-25T17:27:20Z")

</div>

Hello @jdde , you need to use `sycInitialization: true` in the setup call. this will initialise all the dependency in the sync manner.

```auto
await AmityCoreClient.setup(
                      option: AmityCoreClientOption(
                          apiKey: <API_KEY>,
                          httpEndpoint: <HTTP_ENDPOINT>),
                      sycInitialization: true,
                    );

```

---

<div class="post-metadata">

### Author: ![jdde](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jdde](https://forum.social.plus/u/jdde)
#### Post date: [November 25, 2022, 5:56pm UTC](https://forum.social.plus/t/flutter-unable-to-use-amity-sdk/587/3 "2022-11-25T17:56:10Z")

</div>

@Sorbh Oh awesome! Works!  
Feels like I didn’t checked anything 🙈  
But just using the default values results in that error -.-

Searched for a solution and saw an issue in the github repo, which was the same.  
Thank you very much for your answer, will reference this question in the github issue 🙂

Enjoy your weekend!
