Search code examples
androidgithublayoutzooming

How use this project from GitHub


How can use this Project

I add this line on my build.gradle file in dependencies section:

compile 'com.otaliastudios:zoomlayout:1.0.3'

But didn't compile the project. I have this information: Enter image description here

How can I fix this?

Regards Marcin


Solution

  • You have to add Google Maven repository to your project build.gradle. On Android Studio 2+:

    allprojects {
        repositories {
            jcenter()
            maven {
                url "https://maven.google.com"
            }
        }
    }
    

    On Android Studio 3+:

    allprojects {
        repositories {
            jcenter()
            google()
        }
    }