-4

I want add this library into my application : https://github.com/pucamafra/android-segmentedtab

I added this dependences compile 'com.marlonmafra.android.widget:segmented-tab:1.1.0' in build.gradle and added this code again in build.gradle

repositories { jcenter() }

but when click on sync, not sync project and show me this error :

        Error:(125, 10) Failed to resolve: com.marlonmafra.android.widget:segmented-tab:1.1.0
   Show in File
Show in Project Structure dialog

Error image : https://i.stack.imgur.com/Ne0oq.jpg

How can i fix it?

user7121617
  • 11
  • 1
  • 4

3 Answers3

0

Add it in -> build.gradle(Module: app)

clutch co
  • 1
  • 3
0

Follow below steps:

  1. Open your project in Android Studio
  2. Download the library (using Git, or a zip archive to unzip)
  3. Create a folder "subProject" in your project
  4. Copy and paste the FreemiumLibrary folder to your subProject folder
  5. On the root of your project directory create/modify the settings.gradle file.It should contain something like the following:

    include 'MyApp', ':subProject:FreemiumLibrary'

    1. gradle clean & build/close the project and reopen/re-import it.
    2. Edit your project's build.gradle to add this in the "depencies" section:

      dependencies { //... compile project(':subProject:FreemiumLibrary') }

Asif Ghanchi
  • 236
  • 3
  • 11
0

In build.gradle file just write this line in dependencies

dependencies {
   compile 'com.marlonmafra.android.widget:segmented-tab:1.1.0'
}

Then rebuild your project. build->rebuild project.

chetan
  • 681
  • 4
  • 21