Search code examples
androidjitpack

Failed to release a library on Jitpack


I am not able to release library on jitpack. Getting following error:

    FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to find target with hash string 'android-27' in: /android

My SDK is already updated for API 27. Please have a look here.

Please find complete logs here.

Source code: GitHub

Considering myself a novice, I would like to learn the best practices before making a release. Please help me fix this.


Solution

  • The issue was that I was not having buildToolsVersion in my build.gradle. Adding it fixed the issue.

    Hope this helps someone who faces similar situation as mine.