i am running meteor project, i using the command fro run in the device directly by this:
meteor run android-device --allow-superuser
and making android build or .apk with this command:
meteor build ~/Desktop --server="http://localhost:3000"
but i have error on running both commands:
Errors executing Cordova commands:
While running Cordova app for platform Android with options --device:
Error: Command failed: /home/indi/Desktop/Untitled Folder/tapshopapp/.meteor/local/cordova-build/platforms/android/cordova/run --device
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mergeDebugResources'.
> /root/.gradle/caches/transforms-1/files-1.1/play-services-ads-lite-16.0.0.aar/86e9769b97191e3c68089a85fe8b03f6/res/values/values.xml:1:1:
Error: Premature end of file.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 26s
{ Error: /home/indi/Desktop/Untitled Folder/tapshopapp/.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 ':mergeDebugResources'.
> /root/.gradle/caches/transforms-1/files-1.1/play-services-ads-lite-16.0.0.aar/86e9769b97191e3c68089a85fe8b03f6/res/values/values.xml:1:1:
Error: Premature end of file.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 26s
at ChildProcess.whenDone (/home/indi/Desktop/Untitled
Folder/tapshopapp/.meteor/local/cordova-build/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
stderr: '\nFAILURE: Build failed with an exception.\n\n* What went wrong:\nExecution failed for task \':mergeDebugResources\'.\n>
/root/.gradle/caches/transforms-1/files-1.1/play-services-ads-lite-16.0.0.aar/86e9769b97191e3c68089a85fe8b03f6/res/values/values.xml:1:1:
Error: Premature end of file.\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more
log output.\n\n* Get more help at https://help.gradle.org\n\nBUILD FAILED in 26s\n',
stdout: 'Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details\nConfiguration \'compile\' in project \':\'
is deprecated. Use \'implementation\' instead.\nThe Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in
Gradle 5.0. Please use Task.doLast(Action) instead.\n\tat build_4j1leaq492888k5bhcg7w7hj9.run(/home/indi/Desktop/Untitled
Folder/tapshopapp/.meteor/local/cordova-build/platforms/android/build.gradle:146)\npublishNonDefault is deprecated and has no effect
anymore. All variants are now published.\n:cdvCreateAssetManifest\n:preBuild\n:CordovaLib:preBuild UP-TO-DATE\n:CordovaLib:preDebugBuild
UP-TO-DATE\n:CordovaLib:checkDebugManifest\n:CordovaLib:processDebugManifest\n:preDebugBuild\n:CordovaLib:compileDebugAidl\n:compileDebugAidl\n:CordovaLib:packageDebugRenderscript
NO-SOURCE\n:compileDebugRenderscript\n:checkDebugManifest\n:generateDebugBuildConfig\n:prepareLintJar\n:generateDebugResValues\n:generateDebugResources\n:CordovaLib:compileDebugRenderscript\n:CordovaLib:generateDebugResValues\n:CordovaLib:generateDebugResources\n:CordovaLib:packageDebugResources\n:mergeDebugResources\n/root/.gradle/caches/transforms-1/files-1.1/play-services-ads-lite-16.0.0.aar/86e9769b97191e3c68089a85fe8b03f6/res/values/values.xml:1:1:
Error: Premature end of file.\n:mergeDebugResources FAILED\n15 actionable tasks: 15 executed\n',
code: 1 } 'Error: /home/indi/Desktop/Untitled Folder/tapshopapp/.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
\':mergeDebugResources\'.\n>
/root/.gradle/caches/transforms-1/files-1.1/play-services-ads-lite-16.0.0.aar/86e9769b97191e3c68089a85fe8b03f6/res/values/values.xml:1:1:
Error: Premature end of file.\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more
log output.\n\n* Get more help at https://help.gradle.org\n\nBUILD FAILED in 26s\n at ChildProcess.whenDone (/home/indi/Desktop/Untitled
Folder/tapshopapp/.meteor/local/cordova-build/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)\n at
emitTwo (events.js:126:13)\n at ChildProcess.emit (events.js:214:7)\n at maybeClose (internal/child_process.js:925:16)\n at
Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)'
at ChildProcess.exitCallback (/tools/utils/processes.js:151:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
Please help , i already stuck in this issue that android apk is not generated from 3 days. Thanks in advance.