title: Gradle project Sync failed , How to fix?
body: <p>I imported a material Dialog library from Github.
   <a href="https://github.com/drakeet/MaterialDialog" rel="nofollow noreferrer">https://github.com/drakeet/MaterialDialog</a></p>
  
  <p>And I imported the library in Android Studio. 
  However, now The Android Studio says "Gradle project sync failed, basic functionality (editing, debugging) will not work properly.</p>
  
  <p>I tried alternative answers to similar problems from other questions here, 
  <a href="https://stackoverflow.com/questions/29459590/gradle-project-sync-failed">Gradle project sync failed?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/23663299/android-studio-gradle-project-sync-failed">Android Studio Gradle project sync failed</a></p>
  
  <p>But, none works for me . </p>
  
  <p>The error I get in console is : Error:Dependency ZyiaAlarm:materialDialog:unspecified on project app resolves to an APK archive which is not supported as a compilation dependency. File: F:\ZyiaAlarm\materialDialog\build\outputs\apk\materialDialog-release-unsigned.apk</p>
  
  <p>My doubt is: Any way to restore the things back, I mean to get the gradle as it was as I am a beginner, there's much to learn about gradle. 
  OR
  anyway to fix this library I imported ? </p>
  
  <p>Any help will be appreciated!</p>