Search code examples
androidgradlekotlinjitpackandroid-studio-3.0

No way to compile my own kotlin library


With Google I/O 2017, I decided to learn kotlin by developing my own library in kotlin for android. This library allows to get information from OpenWeatherMap API. Link of the project : https://github.com/sokarcreative/EasyOWM

What's the problem ? I just can't compile my library. I tried everything. I have already compiled forked project and it worked but no way with my own library.

I created a new project with these gradlew scripts :

-- Project gradle

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

-- module gradle

dependencies {
    ...
    compile 'com.github.sokarcreative:easyowm:master-SNAPSHOT'
}

Error : Failed to resolve: com.github.sokarcreative:easyowm:master-SNAPSHOT

I know this is a recurring question but no way to solve this problem.

Edit: just in case, the library works. Here is the result on my galaxy tab S3: EasyOWM screenshot


Solution

  • Problem solved with Android Studio 3.0 canary 3