# Problem with upload library Robot Kit (Sloth)

**URL:** <https://forum.sunfounder.com/t/problem-with-upload-library-robot-kit-sloth/237>\
**Category:** Robotic kit for Arduino\
**Created:** [April 23, 2023, 12:32pm UTC](https://forum.sunfounder.com/t/problem-with-upload-library-robot-kit-sloth/237 "2023-04-23T12:32:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorenzuccio](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@lorenzuccio](https://forum.sunfounder.com/u/lorenzuccio)\
**Post date:** [April 23, 2023, 12:32pm UTC](https://forum.sunfounder.com/t/problem-with-upload-library-robot-kit-sloth/237/1 "2023-04-23T12:32:09Z")

</div>

Hi, i downloand DIY\_4-DOF\_Robot\_Kit\_Sloth but is impossible to upload in app Arduino because the error is "one subdirectory is not a valid library " you can help me? tanks

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [April 24, 2023, 2:34am UTC](https://forum.sunfounder.com/t/problem-with-upload-library-robot-kit-sloth/237/2 "2023-04-24T02:34:50Z")

</div>

Code can’t be uploaded in Arduino?

1. What is the version of Arduino IDE you are using, please let us know. Did you select the development board before uploading the code?
2. Did you follow the tutorial to install Arduino IDE and add the required libraries?  
[Install Arduino IDE and Add Libraries — SunFounder DIY 4-DOF Robot Kit 1.0 documentation](https://docs.sunfounder.com/projects/sloth-kit/en/latest/install_arduino.html)
3. What code are you executing? Please give us a full screenshot of the error message if the upload failed.

---

<div class="post-metadata">

**Author:** ![lorenzuccio](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@lorenzuccio](https://forum.sunfounder.com/u/lorenzuccio)\
**Post date:** [April 26, 2023, 2:15pm UTC](https://forum.sunfounder.com/t/problem-with-upload-library-robot-kit-sloth/237/3 "2023-04-26T14:15:14Z")

</div>

hi, attached the image that the forum allows me to insert being a new user

 ![3](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/1X/878adabd84bdfd6d60ad48833d6b51089667a025.jpeg)

Thanks

---

<div class="post-metadata">

**Author:** ![lorenzuccio](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@lorenzuccio](https://forum.sunfounder.com/u/lorenzuccio)\
**Post date:** [April 26, 2023, 2:27pm UTC](https://forum.sunfounder.com/t/problem-with-upload-library-robot-kit-sloth/237/4 "2023-04-26T14:27:55Z")

</div>

the import library : DIY\_4-DOF\_Robot\_Kit\_Sloth.zip

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [April 27, 2023, 6:25am UTC](https://forum.sunfounder.com/t/problem-with-upload-library-robot-kit-sloth/237/5 "2023-04-27T06:25:38Z")

</div>

DIY\_4-DOF\_Robot\_Kit\_Sloth.zip is the code package of Sloth, it is not possible to import the whole code package directly. So after you import it, it will report an error and the import will not work.  
If you want to import a certain library, you have to unzip DIY\_4-DOF\_Robot\_Kit\_Sloth.zip and then import a certain code file.
