CreativeSDK / phonegap-plugin-csdk-image-editor

A PhoneGap plugin for the Creative SDK Image Editor.
Apache License 2.0
35 stars 15 forks source link

Could not find any matches for com.adobe.creativesdk:image:4.6.3+ as no versions of com.adobe.creativesdk:image are available. #35

Open ikishanoza opened 7 years ago

ikishanoza commented 7 years ago

i am using cordova cli to install this plugin following are my system config.

C:\Users\pcq38\Desktop\signal>cordova -v
6.3.1

C:\Users\pcq38\Desktop\signal>npm -v
2.11.3

C:\Users\pcq38\Desktop\signal>node -v
v0.12.7

C:\Users\pcq38\Desktop\signal>ionic -v
2.0.0

simply i have one html file in which i call a function which takes image from camera or photo library on success function i get the url of that selected image(the image that i need to edit) and i pass this url to plugin see below 👍

index.html <button onclick="takeImage()">helo</a>

main.js

<script type="text/javascript">
  function gmail() {
          var imageUrl = "" // assume that image url is comeing from camera plugin
          var options = {
             outputType: CSDKImageEditor.OutputType.JPEG,
               tools: [
                 CSDKImageEditor.ToolType.EFFECTS,
                 CSDKImageEditor.ToolType.CROP
                 ],
                 quality: 50
                };
                CSDKImageEditor.edit(success, error, imageUrl, options);
  }            
        </script>

but when i run cordova run android its give me following error


Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
   > Could not find any matches for com.adobe.creativesdk:image:4.6.3+ as no versions of com.adobe.creativesdk:image are available.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/adobe/creativesdk/image/maven-metadata.xml
         https://repo1.maven.org/maven2/com/adobe/creativesdk/image/
         https://jcenter.bintray.com/com/adobe/creativesdk/image/maven-metadata.xml
         https://jcenter.bintray.com/com/adobe/creativesdk/image/
         file:/C:/Users/pcq38/AppData/Local/Android/sdk/extras/android/m2repository/com/adobe/creativesdk/image/maven-metadata.xml
         file:/C:/Users/pcq38/AppData/Local/Android/sdk/extras/android/m2repository/com/adobe/creativesdk/image/
         file:/C:/Users/pcq38/AppData/Local/Android/sdk/extras/google/m2repository/com/adobe/creativesdk/image/maven-metadata.xml
         file:/C:/Users/pcq38/AppData/Local/Android/sdk/extras/google/m2repository/com/adobe/creativesdk/image/
     Required by:
         :android:unspecified
   > Could not find any matches for com.localytics.android:library:3.8.0+ as no versions of com.localytics.android:library are available.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/localytics/android/library/maven-metadata.xml
         https://repo1.maven.org/maven2/com/localytics/android/library/
         https://jcenter.bintray.com/com/localytics/android/library/maven-metadata.xml
         https://jcenter.bintray.com/com/localytics/android/library/
         file:/C:/Users/pcq38/AppData/Local/Android/sdk/extras/android/m2repository/com/localytics/android/library/maven-metadata.xml
         file:/C:/Users/pcq38/AppData/Local/Android/sdk/extras/android/m2repository/com/localytics/android/library/
         file:/C:/Users/pcq38/AppData/Local/Android/sdk/extras/google/m2repository/com/localytics/android/library/maven-metadata.xml
         file:/C:/Users/pcq38/AppData/Local/Android/sdk/extras/google/m2repository/com/localytics/android/library/
     Required by:
         :android:unspecified

* Try:
Run wit
```h --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.