NeutrinosPlatform / cordova-plugin-document-scanner

cordova plugin for document scan
https://www.neutrinos.co/
MIT License
84 stars 63 forks source link

cordova build andorid - Could not resolve all files for configuration ':app:debugCompileClasspath' #58

Closed ryancmlee closed 5 years ago

ryancmlee commented 5 years ago

Hi, Could I get some help building this project? I was able to build and run cordova-plugin-mobile-ocr with no issues. Thanks!

cordova build android

...
> Task :app:preBuild UP-TO-DATE
> Task :CordovaLib:preBuild UP-TO-DATE
> Task :CordovaLib:preDebugBuild UP-TO-DATE
> Task :CordovaLib:checkDebugManifest UP-TO-DATE
> Task :CordovaLib:processDebugManifest UP-TO-DATE
> Task :app:preDebugBuild
> Task :app:preDebugBuild FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve com.github.NeutrinosPlatform:scanlibrary:2.3.
  Required by:
      project :app
   > Skipped due to earlier error

cordova plugin ls

cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-document-scanner 4.2.0 "Scan"
cordova-plugin-mobile-ocr 3.1.1 "Textocr"
cordova-plugin-whitelist 1.3.4 "Whitelist"
ChrisTomAlx commented 5 years ago

Hey @ryancmlee I just ran an android build successfully after adding all the same plugins you had added. Could you remove, then add the platform using cordova plugin rm android and cordova plugin add android.

This could be an issue with jitpack being down, which is where the android scanlibrary build is hosted.

Also what is your cordova version and your cordova-android version ?

Cheers, Chris Neutrinos

ryancmlee commented 5 years ago

Hi Chris, Thanks so much for the reply and awesome free plugin. I was able to build after restarting my computer. Not sure what the issue was.

Cheers, Ryan

andoird 8.0.0 cordova 9.0.0 (cordova-lib@9.0.1)