:generateReleaseResources
Building Cordova app for Android \
Building Cordova app for Android \
Building Cordova app for Android |
:generateReleaseSources
/home/chris/projects/skip/.meteor/local/cordova-build/platforms/android/src/nl/xservices/plugins/SocialSharing.java:19: error: package org.apache.http.util does not exist
import org.apache.http.util.ByteArrayBuffer;
^
/home/chris/projects/skip/.meteor/local/cordova-build/platforms/android/src/nl/xservices/plugins/SocialSharing.java:420: error: cannot find symbol
ByteArrayBuffer baf = new ByteArrayBuffer(5000);
^
symbol: class ByteArrayBuffer
location: class SocialSharing
/home/chris/projects/skip/.meteor/local/cordova-build/platforms/android/src/nl/xservices/plugins/SocialSharing.java:420: error: cannot find symbol
ByteArrayBuffer baf = new ByteArrayBuffer(5000);
^
symbol: class ByteArrayBuffer
location: class SocialSharing
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ‘:compileReleaseJavaWithJavac’.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILEDCordova app for Android |
Total time: 2.321 secs
=> Errors executing Cordova commands:
While building Cordova app for platform Android:
Error code 1 for command: /home/chris/projects/skip/.meteor/local/cordova-build/platforms/android/gradlew with args:
cdvBuildRelease,-b,/home/chris/projects/skip/.meteor/local/cordova-build/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
By the way, you probably shouldn’t add the plugin from NPM nor the latest version available (5.1.1), since the latest version fails to build on Android. The latest version builds only on iOS, and I have opened an issue on this.
Yeh man I have also run into this and thank you for opening a issue. I just figured i had fucked something up but I guess not so. I have removed android for now and waiting for more info. Thanks again
Niceness! I found a solution. You just need to upgrade your Cordova, and then you will be able to install the latest (5.1.1) version of cordova-plugin-socialsharing. I had some old Cordova version in my system – I can’t say what it was but apparently not the latest one.