# How to add and use third party git libraries in JetPack compose UI android

**URL:** <https://forums.kodeco.com/t/how-to-add-and-use-third-party-git-libraries-in-jetpack-compose-ui-android/146821>\
**Category:** Jetpack Compose by Tutorials\
**Created:** [August 25, 2021, 11:03am UTC](https://forums.kodeco.com/t/how-to-add-and-use-third-party-git-libraries-in-jetpack-compose-ui-android/146821 "2021-08-25T11:03:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![duks](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/duks/32/98732_2.png) [@duks](https://forums.kodeco.com/u/duks)\
**Post date:** [August 25, 2021, 11:03am UTC](https://forums.kodeco.com/t/how-to-add-and-use-third-party-git-libraries-in-jetpack-compose-ui-android/146821/1 "2021-08-25T11:03:27Z")

</div>

Tried adding the following steps but couldn’t use the third-party UI component in the jetpack,

1. Add maven { url ‘[https://jitpack.io](https://jitpack.io)’ } in build.gradle
2. Add dependency in app.gradle
3. Tried to use the component in UI

---

<div class="post-metadata">

**Author:** ![barry-jacobs](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/barry-jacobs/32/81494_2.png) [@barry-jacobs](https://forums.kodeco.com/u/barry-jacobs)\
**Post date:** [September 8, 2021, 6:46am UTC](https://forums.kodeco.com/t/how-to-add-and-use-third-party-git-libraries-in-jetpack-compose-ui-android/146821/2 "2021-09-08T06:46:35Z")

</div>

I’m having exactly the same issue, did you find a resolution for this? Seems git libraries just don’t work in compose, I have the same setup as you, regarding the maven reference:

```
repositories {
    google()
    mavenCentral()
    maven { url 'https://jitpack.io' }
}

```

- What went wrong:  
Execution failed for task ‘:app:mergeDebugNativeLibs’.

> Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.  
> Could not find com.github.jeziellago:compose-markdown:0.2.6.  
> Searched in the following locations:  
> …  
> Required by:  
> project :app

Looking at the specific reference:

[https://jcenter.bintray.com/com/github/jeziellago/compose-markdown/0.2.6/compose-markdown-0.2.6.pom](https://jcenter.bintray.com/com/github/jeziellago/compose-markdown/0.2.6/compose-markdown-0.2.6.pom)

This gives a 403 forbidden, which is probably the issue

---

<div class="post-metadata">

**Author:** ![mokth2005](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mokth2005/32/99055_2.png) [@mokth2005](https://forums.kodeco.com/u/mokth2005)\
**Post date:** [September 25, 2021, 6:58am UTC](https://forums.kodeco.com/t/how-to-add-and-use-third-party-git-libraries-in-jetpack-compose-ui-android/146821/3 "2021-09-25T06:58:51Z")

</div>

after few days of finding, finally I found the solution. in the settings.gradle file add in

dependencyResolutionManagement {  
repositoriesMode.set(RepositoriesMode.FAIL\_ON\_PROJECT\_REPOS)  
repositories {  
google()  
mavenCentral()  
**maven { url = uri(“[https://jitpack.io](https://jitpack.io)” ) } ----\> add this if want to use jitpack libraries**  
//jcenter() // Warning: this repository is going to shut down soon  
}  
}  
rootProject.name = “ERPLite”  
include ‘:app’

have fun.
