Unable to generate the build on ubuntu/linux

Hi,
When I am trying to generate the build .I am getting error.

astrea@astrea-Vostro-3250:~$ cd Demo
astrea@astrea-Vostro-3250:~/Demo$ meteor run android-device
[[[[[ ~/Demo ]]]]]

=> Started proxy.
WARNING: Attempting to install plugin cordova-plugin-splashscreen@3.2.1, but it should have a minimum version of 4.0.0 to ensure compatibility
with the current platform versions. Installing the minimum version for convenience, but you should adjust your dependencies.

WARNING: You are testing your app on a remote device. For the mobile app to be able to connect to the local server, make sure your device is on
the same network, and that the network configuration allows clients to talk to each other (no client isolation).
=> Started MongoDB.
=> Started your app.

=> App running at: http://localhost:3000/
=> Errors executing Cordova commands:

While running Cordova app for platform Android with options --device:
Error: Command failed: /home/astrea/Demo/.meteor/local/cordova-build/platforms/android/cordova/run --device
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:transformClassesWithMultidexlistForDebug’.

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException: Process ‘command ‘/usr/lib/jvm/java-7-openjdk-amd64/bin/java’’ finished with non-zero exit value
1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    { [Error: /home/astrea/Demo/.meteor/local/cordova-build/platforms/android/gradlew: Command failed with exit code 1 Error output:
    FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:transformClassesWithMultidexlistForDebug’.

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException: Process ‘command ‘/usr/lib/jvm/java-7-openjdk-amd64/bin/java’’ finished with non-zero exit value
1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.] code: 1 } 'Error:
    /home/astrea/Demo/.meteor/local/cordova-build/platforms/android/gradlew: Command failed with exit code 1 Error output:\nFAILURE: Build
    failed with an exception.\n\n* What went wrong:\nExecution failed for task ‘:transformClassesWithMultidexlistForDebug’.\n>
    com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException:
    org.gradle.process.internal.ExecException: Process ‘command ‘/usr/lib/jvm/java-7-openjdk-amd64/bin/java’’ finished with non-zero exit
    value 1\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\n at
    ChildProcess.whenDone
    (/home/astrea/Demo/.meteor/local/cordova-build/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)\n at
    emitTwo (events.js:87:13)\n at ChildProcess.emit (events.js:172:7)\n at maybeClose (internal/child_process.js:854:16)\n at
    Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)'
    at ChildProcess.exitCallback (/tools/utils/processes.js:151:23)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
    => awaited here:
    at Function.Promise.await
    (/home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/isopackets/cordova-support/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:35:12)
    at CordovaProject.runCommands (/tools/cordova/project.js:715:22)
    at CordovaProject.run$ (/tools/cordova/project.js:261:10)
    at tryCatch
    (/home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:63:40)
    at GeneratorFunctionPrototype.invoke as _invoke
    (/home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:337:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) as next
    (/home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:96:21)
    at tryCatch
    (/home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:63:40)
    at invoke
    (/home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:139:20)
    at
    /home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:184:11
    at callInvokeWithMethodAndArg
    (/home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:183:16)
    at AsyncIterator.enqueue
    (/home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:206:13)
    at AsyncIterator.prototype.(anonymous function) as next
    (/home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:96:21)
    at Object.runtime.async
    (/home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:226:14)
    at
    /home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/isopackets/cordova-support/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:32:39

/home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/isopackets/cordova-support/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:190
throw error;
^
undefined
=> awaited here:
at Function.Promise.await (/home/astrea/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/isopackets/cordova-support/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:35:12)
at /tools/cordova/runner.js:98:17
at /tools/utils/buildmessage.js:271:13
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at CordovaRunner.startRunTargets (/tools/cordova/runner.js:97:37)
at AppRunner._runOnce (/tools/runners/run-app.js:763:21)
at AppRunner._fiber (/tools/runners/run-app.js:876:28)
at /tools/runners/run-app.js:403:12

Try adding cordova-plugin-splashscreen package or use meteor update --all-packages to get rid of that first warning. For the second one try using the --mobile-server=http://127.0.0.1:3000 flag to run the build.

Thanks ,
Warning is not there, But Still I am Unable to get the build.Errors are still there

1 Like

Could you fixed this issue?

I could fix this issue using following steps-:

meteor add cordova:cordova-plugin-meteor-webapp@https://github.com/meteor/cordova-plugin-meteor-webapp.git#8bf95eed3f313299fc2de33658866278eea2cdc5

meteor add cordova:cordova-plugin-meteor-webapp@1.4.1

rm -rf .meteor/local/cordova-build

meteor run ios

Source-: https://github.com/meteor/meteor/issues/7828

Thanks :slight_smile:

1 Like