# Failed to initialize Zoom SDK error Android

**URL:** <https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877>\
**Category:** Android\
**Created:** [April 26, 2021, 11:49am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877 "2021-04-26T11:49:08Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![soumoghosh37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@soumoghosh37](https://devforum.zoom.us/u/soumoghosh37)\
**Post date:** [April 26, 2021, 11:49am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877/1 "2021-04-26T11:49:08Z")

</div>

**Description**  
Hi, I created your “Sample” app from the official Zoom SDK for Android, I also used JWT from [https://jwt.io/](https://jwt.io/) with my SDK KEY and SDK Secret. When I debugged the app into my Android device it’s giving me error “Failed to initialize Zoom SDK, error code 5, internalErrorCode 124”. Please help

**Which Android Client SDK version?**  
v5.5.1.1317

**Screenshots**

 ![Screenshot_2021-04-26-17-15-21-161_us.zoom.sdkexample1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/c/ec8fb478595f3c1c233d84f1aae8a2d3db771025.jpeg)

**Smartphone (please complete the following information):**

- Device: Xiaomi Redmi Note 9
- OS: Android 10

**Additional context**  
Add any other context about the problem here.

- List item

---

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [April 26, 2021, 2:50pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877/2 "2021-04-26T14:50:16Z")

</div>

Hi @soumoghosh37,

Welcome to the community!

Please could you double check that your device date/time is correct, and that your server time (where the JWT is generated) is also correct.

Could you take a look and verify that the JWT is being generated correctly? If possible, please enter it at [jwt.io](https://jwt.io/) and paste a screenshot here showing the results? (Be sure to redact your API credentials).

You can also try creating a JWT token on the Zoom App Marketplace and see if it works in your app. If it does, then it’s an issue with your JWT creation code.

 ![Screenshot 2021-04-26 at 15.47.22](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/4/042e6ae61ff2b20e64b3c1269351db9ab21af103.png)

I hope this helps!  
Alex

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 26, 2021, 6:57pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877/3 "2021-04-26T18:57:22Z")

</div>

Hi @soumoghosh37, thanks for using the dev forum.

Thank you again @alexmayo for helping out!

In addition to the above suggestions, please ensure that the key/secret values being used are SDK credentials (the app type in Marketplace will be listed as SDK). Once you have posted the JWT you are using (with your credentials redacted as mentioned above), we will be able to look into this further.

Thanks!

---

<div class="post-metadata">

**Author:** ![soumoghosh37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@soumoghosh37](https://devforum.zoom.us/u/soumoghosh37)\
**Post date:** [April 27, 2021, 10:13am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877/4 "2021-04-27T10:13:22Z")

</div>

Hi @alexmayo @jon.zoom

This is the screenshot

 ![Screenshot (5)_LI](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/0/80c7ae5d7e8642ae79adacc0443fcb52e8ea2d85.jpeg)

@alexmayo I had previously made a JWT app and used the JWT token provided there, but it was giving me wrong JWT error.

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [April 27, 2021, 10:51am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877/5 "2021-04-27T10:51:33Z")

</div>

hi @soumoghosh37,

I notice that your `tokenExp` is over a year in length.  
Can you please try making it expire in an hour, rather than a year?

Other than that, the JWT token seems OK. Can you confirm the key/secret values being used are SDK credentials as Jon mentioned above?

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 27, 2021, 9:54pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877/6 "2021-04-27T21:54:20Z")

</div>

Hi @soumoghosh37,

I agree with @alexmayo’s suggestion that there may be issues with setting the expiration time that far out. Please let us know if it works after changing that value.

Thanks!

---

<div class="post-metadata">

**Author:** ![soumoghosh37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@soumoghosh37](https://devforum.zoom.us/u/soumoghosh37)\
**Post date:** [April 28, 2021, 10:05am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877/7 "2021-04-28T10:05:36Z")

</div>

Hi @alexmayo @jon.zoom

I tried by reducing the `tokenExp` to one hour, but it is still giving the same error on running.

 ![Screenshot (7)_LI](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/b/0b391473d8e6fc6c0922b195945ae73acdd7d7e2.jpeg)

And yes, I can confirm that the correct SDK key is being used.

Thanks : )

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 28, 2021, 3:06pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877/8 "2021-04-28T15:06:19Z")

</div>

Hi @soumoghosh37,

Thanks for giving that a try. I don’t see the SDK key field in that screenshot, can you confirm that it’s there but redacted? If so, can you please provide the SDK logs so that we can investigate this further?

Thanks!

---

<div class="post-metadata">

**Author:** ![soumoghosh37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@soumoghosh37](https://devforum.zoom.us/u/soumoghosh37)\
**Post date:** [April 29, 2021, 9:47am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877/9 "2021-04-29T09:47:41Z")

</div>

Hi @jon.zoom,

Yes I can confirm the SDK Key was there, I just used white color to cover it.  
Can you please tell how to generate SDK logs?

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 29, 2021, 5:24pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877/10 "2021-04-29T17:24:30Z")

</div>

Hi @soumoghosh37,

Thanks for confirming. The logs can be found under `sdcard/Android/data/${YOUR_PACKAGE_NAME}/logs`. The SDK logs should be an encrypted file. Once you have located the logs, please send them over to [developersupport@zoom.us](mailto:developersupport@zoom.us).

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 30, 2021, 3:25am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-android/48877/11 "2021-05-30T03:25:07Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
