JoschkaSchulz / cordova-plugin-image-resizer

MIT License
68 stars 113 forks source link

Build failure #57

Open ffMathy opened 6 years ago

ffMathy commented 6 years ago

Here's my build log:

:CordovaLib:compileReleaseJavaWithJavac
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease
:app:preBuild UP-TO-DATE
:app:preReleaseBuild
Download https://maven.google.com/com/android/support/appcompat-v7/maven-metadata.xml
Download https://maven.google.com/com/android/support/appcompat-v7/23.4.0/appcompat-v7-23.4.0.pom
Download https://jcenter.bintray.com/com/android/support/appcompat-v7/maven-metadata.xml
Download https://jitpack.io/com/github/ergovia-mobile/android-transcoder/v0.1.10R_ergovia/android-transcoder-v0.1.10R_ergovia.pom
Download https://jitpack.io/com/github/ergovia-mobile/android-transcoder/v0.1.10R_ergovia/android-transcoder-v0.1.10R_ergovia.aar
:app:compileReleaseAidl
:CordovaLib:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript
:app:checkReleaseManifest
:app:generateReleaseBuildConfig
:app:prepareLintJar
:app:generateReleaseResValues
:app:generateReleaseResources
:app:mergeReleaseResources
:app:createReleaseCompatibleScreenManifests
:app:processReleaseManifest
/usr/src/app/platforms/android/app/src/main/java/info/protonet/imageresizer/ImageResizer.java:15: error: package org.apache.cordova.camera does not exist
import org.apache.cordova.camera.FileHelper;
                                ^
/usr/src/app/platforms/android/app/src/main/java/info/protonet/imageresizer/ImageResizer.java:92: error: cannot find symbol
            BitmapFactory.decodeStream(FileHelper.getInputStreamFromUriString(uriString, cordova), null, options);
                                       ^
  symbol:   variable FileHelper
  location: class ImageResizer
/usr/src/app/platforms/android/app/src/main/java/info/protonet/imageresizer/ImageResizer.java:99: error: cannot find symbol
            Bitmap unscaledBitmap = BitmapFactory.decodeStream(FileHelper.getInputStreamFromUriString(uriString, cordova), null, options);
                                                               ^
  symbol:   variable FileHelper
  location: class ImageResizer
xgenem commented 6 years ago

Make sure you have added the package to your project.

SyedAliHassan90 commented 3 years ago

@ffMathy I faced the same issue. I find its solution in closed bugs. https://github.com/JoschkaSchulz/cordova-plugin-image-resizer/issues/33#issuecomment-371407045

jfoclpf commented 3 years ago

I have exactly the same error, how did you guys solved this? My package.json declares this plugin both in dependencies and in cordova.plugins

jfoclpf commented 3 years ago

@xgenem it's added: https://github.com/jfoclpf/in-my-district/blob/v1.2.8/package.json