Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How i can use MapMyIndia in kotlin?

I can’t use MapMyIndia in kotlin, I need to know how I can install it.

Now in my code I got this:

Project level build.gradle

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

maven {
            url 'https://maven.mapmyindia.com/repository/mapmyindia/'
        }

App level dependency build.gradle

implementation 'com.mapmyindia.sdk:mapmyindia-android-sdk:6.8.2'

But when i want to use anything with MapMyIndia on my activity or xml i got none about it.

>Solution :

There is one more place where you should import the.

in settings.gradle Project Settings and
should look something like this

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://maven.mapmyindia.com/repository/mapmyindia/' }
    }
}
rootProject.name = "This is Sparta"
include ':app'

That should do the trick.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading