How to use github lib in my Android Studio project?

1

I need to use a lib to zoom in the imageview of Android Studio, after some research, I found a lib in github that can help me, but I could not use it in my project, someone explains how to use github in my project? I'm new to the area and I'm getting to know github now. I imported the downloaded project but it opens as a new independent project, so I could not use anything.

    
asked by anonymous 13.06.2018 / 19:34

1 answer

0

Probably just like any other library (or most of them at least). Adding in the app-level build.gradle of your project, android's developers page explains how to use the gradle.

An example:

apply plugin: 'com.android.application' 

android{
    ...
}

dependencies{

    ...
    implementation 'com.android.support:appcompat-v7:27.1.1' //Isso adiciona a biblioteca de suporte do android ao projeto

    implementation 'org.jsoup:jsoup:1.11.3' //Isso adiciona a biblioteca do jsoup ao projeto

}

Remember that after adding items to your build.gradle or any other changes you should synchronize your build.gradle with the project

    
13.06.2018 / 20:01