10clouds/GaugeSeekBar

Failed to resolve: tenclouds:gaugeseekbar:1.0.1

sevenbitsriddhi opened this issue · 1 comments

When I tried to add the dependency in gradle file, I got the error "Failed to resolve: tenclouds:gaugeseekbar:1.0.1" I have also added following line into project level gradle
maven { url 'http://repo.aws.10clouds.com:8081/artifactory/gradle-dev-local/' }

Hey, I had issues as well. Here is a solution .

  1. Download the github repo as zip file.
  2. Move folder gaugeseekbar into your Android Folder (that has app as folder, not src)
  3. Edit settings.gradle in Android Folder to "include ':app', ':gaugeseekbar'"
  4. In build.gradle (module:app) type
dependencies {
...
// GaugeSeek Bar
    implementation project(':gaugeseekbar')
}

Try to "Sync Project".

  1. To use in res/layouts/layout.xml file - <com.tenclouds.gaugeseekbar.GaugeSeekBar
  2. You might get issues if you using androidx - If so, edit error files and press alt + enter to re-apply right imports.

To use: If you want progress colors as gradient..
use app:progressGradient="@array/progressColor" and in res/values/colors.xml add

<array name="progressColor">
<item>@color/fbutton_color_sun_flower</item>
        <item>@color/fbutton_color_orange</item>
        <item>@color/fbutton_color_sun_flower</item>
        <item>@color/fbutton_color_pumpkin</item>
</array>

every item indicate a color in colors.xml .
<color name="fbutton_color_orange">#f39c12</color>