Hi, received the below error in the mobile apps log when trying to generate an app on service center.
Following is the downloaded error log. Thanks!
[2018-10-25T09:00:54.578Z] [INFO] Start processing job request...[2018-10-25T09:00:54.580Z] [INFO] Start generating application...[2018-10-25T09:00:54.581Z] [INFO] Nativizer version: 1.1.x[2018-10-25T09:00:54.581Z] [INFO] Template version: 3.3.0[2018-10-25T09:00:54.581Z] [INFO] Build features: cordovaNoFetch - true[2018-10-25T09:00:54.581Z] [INFO] Build features: buildTimeout - 20[2018-10-25T09:00:54.581Z] [INFO] Creating a temporary folder for the application...[2018-10-25T09:00:54.581Z] [INFO] Creating the required directory structure for your cordova application...[2018-10-25T09:00:59.283Z] [INFO] Getting application resources...[2018-10-25T09:00:59.288Z] [INFO] Processing application resources...[2018-10-25T09:00:59.387Z] [INFO] Generating application assets...[2018-10-25T09:00:59.795Z] [INFO] Applying configurations in the config.xml file...[2018-10-25T09:00:59.802Z] [INFO] Applying advanced configurations in the config.xml file...[2018-10-25T09:00:59.802Z] [INFO] Applying custom application icons...[2018-10-25T09:00:59.802Z] [INFO] Applying custom application splashscreens...[2018-10-25T09:00:59.802Z] [INFO] Applying application preferences...[2018-10-25T09:00:59.803Z] [INFO] Applying application accessList...[2018-10-25T09:00:59.803Z] [INFO] Adding target platform...[2018-10-25T09:01:26.428Z] [INFO] Applying plugins in the config.xml file...[2018-10-25T09:01:26.428Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-geolocation.git#2.4.1[2018-10-25T09:01:26.428Z] [INFO] Plugin Action: add[2018-10-25T09:01:29.346Z] [INFO] Plugin Id: https://github.com/alexandreafc/cordova-plugin-background-geolocation[2018-10-25T09:01:29.346Z] [INFO] Plugin Action: add[2018-10-25T09:01:32.390Z] [ERROR]You have been opted out of telemetry. To change this, run: cordova telemetry on.No scripts found for hook "before_plugin_add".Calling plugman.fetch on plugin "https://github.com/alexandreafc/cordova-plugin-background-geolocation"Fetching plugin "https://github.com/alexandreafc/cordova-plugin-background-geolocation" via git cloneRunning command: git clone --depth=1 https://github.com/alexandreafc/cordova-plugin-background-geolocation /tmp/git/1540458090608Command finished with error code 0: git clone,--depth=1,https://github.com/alexandreafc/cordova-plugin-background-geolocation,/tmp/git/1540458090608Repository "https://github.com/alexandreafc/cordova-plugin-background-geolocation" checked out to git ref "master"./tmp/build/source/plugins/cordova-plugin-mauron85-background-geolocation"...Plugin "cordova-plugin-mauron85-background-geolocation" fetched.Calling plugman.install on plugin "/opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/plugins/cordova-plugin-mauron85-background-geolocation" for platform "androidInstalling "cordova-plugin-mauron85-background-geolocation" for androidRunning command: /opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/platforms/android/cordova/versionCommand finished with error code 0: /opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/platforms/android/cordova/versionFinding scripts for "before_plugin_install" hook from plugin cordova-plugin-mauron85-background-geolocation on android platform only.No scripts found for hook "before_plugin_install".Install start for "cordova-plugin-mauron85-background-geolocation" on android.PlatformApi successfully found for platform androidBeginning processing of action stack for android project...Error during processing of action! Attempting to revert...Failed to install 'cordova-plugin-mauron85-background-geolocation': CordovaError: Uh oh!"/opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/plugins/cordova-plugin-mauron85-background-geolocation/android/common/src/main/java/com/evgenii/jsevaluator/HandlerWrapper.java" not found! at copyFile (/opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/platforms/android/cordova/lib/pluginHandlers.js:219:36) at copyNewFile (/opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/platforms/android/cordova/lib/pluginHandlers.js:247:5) at install (/opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/platforms/android/cordova/lib/pluginHandlers.js:43:17) at ActionStack.process (/opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25) at PluginManager.doOperation (/opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20) at PluginManager.addPlugin (/opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:144:17) at /opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/platforms/android/cordova/Api.js:243:74 at _fulfilled (/opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/platforms/android/cordova/node_modules/q/q.js:854:54) at self.promiseDispatch.done (/opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/platforms/android/cordova/node_modules/q/q.js:883:30) at Promise.promise.promiseDispatch (/opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/platforms/android/cordova/node_modules/q/q.js:816:13)Error: Uh oh!"/opt/NativeBuilder/builds/d9801ff8-5c55-45a8-b755-dd415783db55/source/plugins/cordova-plugin-mauron85-background-geolocation/android/common/src/main/java/com/evgenii/jsevaluator/HandlerWrapper.java" not found![2018-10-25T09:01:32.391Z] [ERROR] Build failed with the following error: Error installing Cordova plugin: cordova-plugin-mauron85-background-geolocation.[2018-10-25T09:01:32.391Z] [INFO] Remove debug/release signing properties[2018-10-25T09:01:32.391Z] [INFO] Zipping application source...[2018-10-25T09:01:40.248Z] [INFO] Application was not successfully generated![2018-10-25T09:01:40.253Z] [INFO] Execution time: 45711ms
Hi Li.
I was having the same problem.In my case tag # the version of the plugin solved!!!In the extensibility settings I updated the URL:From:{ "plugin": { "url": "https://github.com/alexandreafc/cordova-plugin-background-geolocation" }}To:{ "plugin": { "url": "https://github.com/alexandreafc/cordova-plugin-background-geolocation.git#v2.3.4" }}
Hope this helps.
Hello. After changing this setting the plugin built successfuly. But after adding it in my app, I can't biuld native platform application (android version). The error is "Error generating green (Android): Error compiling Cordova plugin: xml/authenticator.xml:2: AAPT: error: resource mipmap/icon (aka com.outsystemscloud.bvvukmig.green:mipmap/icon) not found.. Download the full log in the Native Platforms tab at bvvukmig.outsystemscloud.com/ServiceCenter/Application_Edit.aspx?ApplicationId=23".
Does anybody have any suggestion how to resole this issue?