antwankakki / FabricView

A new canvas drawing library for Android. Aims to be the Fabric.js for Android. Supports text, images, and hand/stylus drawing input. The library has a website and API docs, check it out
http://antwankakki.github.io/FabricView/
Apache License 2.0
1.04k stars 183 forks source link

This dependency does't work correctly while I synced it with Gradle #16

Closed anasq66 closed 7 years ago

anasq66 commented 8 years ago

Please let me know if the version number of Fabric View has been changed or not as I tried the -snapshot and its doenst work nor compiled to see that package.

Many Thanks

antwankakki commented 8 years ago

Can you please add more details to your problem? I will be coming back to work on this more often and i just tried to create a new project and followed the steps on the github readme, it worked

BrennanMcDonald commented 8 years ago

Adding compile 'com.github.antwankakki:FabricView:-SNAPSHOT' to the build gradle threw Failed to resolve: com.github.antwankakki:FabricView:-SNAPSHOT

Thats all I got from the Gradle sync errors

shokri-navid commented 7 years ago

According to jitpack.io documentation I use

allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }

and then:

dependencies {
    compile 'com.github.antwankakki:FabricView:-SNAPSHOT'
}

this works!!!! but some time android studio cannot build gradle because of cannot resolve dependancies

langsmith commented 7 years ago

I'm getting the same gradle sync error problem as others like @BrennanMcDonald :(

Any thoughts @antwankakki ?

antwankakki commented 7 years ago

Sorry yall, I'm back to work on the project :)

Looks like the issue could come from two places, either you placed the maven { url "https://jitpack.io" } in the wrong place or you were using the wrong dependencies tag line. in your project build.gradle, put this

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

in your Module's build.gradle put this: compile 'com.github.antwankakki:FabricView:latest'