1

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.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Ali_Waris
  • 1,944
  • 2
  • 28
  • 46
  • check this [SO](https://stackoverflow.com/questions/40457524/failed-to-find-target-with-hash-string-android-25) – Sagar May 23 '18 at 07:47

1 Answers1

1

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.

Ali_Waris
  • 1,944
  • 2
  • 28
  • 46