# Issue fetching Dwolla Kotlin SDK from Jitpack via Maven

**URL:** <https://discuss.dwolla.com/t/issue-fetching-dwolla-kotlin-sdk-from-jitpack-via-maven/6583>\
**Category:** Other\
**Created:** [December 30, 2020, 4:16pm UTC](https://discuss.dwolla.com/t/issue-fetching-dwolla-kotlin-sdk-from-jitpack-via-maven/6583 "2020-12-30T16:16:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cody\_Eddings](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/cody_eddings/32/2809_2.png) [@Cody\_Eddings](https://discuss.dwolla.com/u/Cody_Eddings)\
**Post date:** [December 30, 2020, 4:16pm UTC](https://discuss.dwolla.com/t/issue-fetching-dwolla-kotlin-sdk-from-jitpack-via-maven/6583/1 "2020-12-30T16:16:08Z")

</div>

I’m trying to import the [Dwolla Kotlin SDK](https://github.com/Dwolla/dwolla-v2-kotlin) into my project via gradle, but I get an IDE error when I follow the instructions on the project’s github:

**project build.gradle**

```auto
    repositories {
        mavenCentral()
        jcenter()
        maven(url = "https://jitpack.io") {
            name = "jitpack"
        }
    }

```

**App build.gradle**

```auto
    dependencies {
        implementation("com.github.Dwolla:dwolla-v2-kotlin:0.2.0")
    }

```

causes the compiler error in intelliJ: `maven' in 'org.gradle.api.artifacts.dsl.RepositoryHandler' cannot be applied to '(java.lang.String, groovy.lang.Closure<java.lang.String>)`

This seems like a syntax issue with either Maven or Gradle, but I haven’t been able to import the Dwolla lib’s classes yet because of it. I detail my attempted solutions on this [stackoverflow post](https://stackoverflow.com/questions/65482077/maven-with-url-argument-not-allowed-in-build-gradle-repositories). What do I need to do differently to successfully import the Dwolla Kotlin SDK?

---

<div class="post-metadata">

**Author:** ![Cody\_Eddings](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/cody_eddings/32/2809_2.png) [@Cody\_Eddings](https://discuss.dwolla.com/u/Cody_Eddings)\
**Post date:** [December 30, 2020, 8:11pm UTC](https://discuss.dwolla.com/t/issue-fetching-dwolla-kotlin-sdk-from-jitpack-via-maven/6583/2 "2020-12-30T20:11:45Z")

</div>

The solution was to add the maven call to my project-level build.gradle file instead of at the app level.
