Cant build with Meteor 1.3 update

: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

1 Like

have exactly the same problem no idea how to fix so removing android for now

1 Like

I also bumped into this problem. The solution was to upgrade cordova-plugin-socialsharing@4.3.81 to cordova-plugin-inappbrowser@https://github.com/ephemer/cordova-plugin-inappbrowser.git#04091fde737519c149e7ad6316971cb6b490c5b3. As you can see, the latest version provided by NPM wasn’t fresh enough for Meteor 1.3 / Cordova 4.X.X.

What plugins do you have installed? You probably should uninstall them all and add them one by one, and see when the build process begins to fail.

1 Like

thanks man very useful. will try building again with this

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

1 Like

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.

So, try the following:

npm install -g cordova && 
meteor remove cordova:cordova-plugin-socialsharing &&
meteor add cordova:cordova-plugin-socialsharing@https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git#01ad0724ed2d5b217aa0d302514c43229354ca8c

Please let us know whether this solution fixed your problem or not. It will be valuable information to the others struggling with this problem.

I’m with 1.4 and got the same error. Anyone had some luck to solve this?

@Erkkimon’s solution doesn’t solve my issue.

cc: @martijnwalraven

Building & bundling in 1.3+ is about as fun as using Slackware in the 90s.