How do I use github lib in my Android Studio project?

Asked

Viewed 202 times

1

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

  • normally on the page of the same has a tutorial, search for videos on youtube have many on it, how to use these...

  • What is the name of this lib? See if it is not declared inside the block dependencies in the archive build.gradle of the project you downloaded from Github. If you are, just copy the statement to the file build.gradle of your project.

1 answer

0

Probably like any other library (or most of them at least). By adding the app-level build.Radle to your project, the developer page android explains how to use 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.Radle or any other changes, you should synchronize your build.Radle with the project

  • Thanks man, helped here... I got reading on the developer page

Browser other questions tagged

You are not signed in. Login or sign up in order to post.