Hi all,
I am trying to build hybrid app comprising off offline and notification which is built successfully thanks to posts from Ludo Noens and Greg Cariño. Now im trying to add external cordova plugins to be able to use background-geolocation, once i add an external plugin i am getting a build error and the build fails, if i remove that plugin and build again it works again. Sharing the plugin added and the build error below.
Ludo Noens any insight from the cloud build product side will help a great deal to move ahead.


Installing "cordova-plugin-geolocation" for android
Installing "cordova-plugin-network-information" for android
Installing "cordova-plugin-pavelety-background-geolocation" for android
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-pavelety-background-geolocation': CordovaError: Uh oh!
"/mnt/workspace/cordova/plugins/cordova-plugin-pavelety-background-geolocation/android/common/src/main/java/com/marianhello/bgloc/LocationManager.java" not found!
at copyFile (/mnt/workspace/cordova/platforms/android/cordova/lib/pluginHandlers.js:208:36)
at copyNewFile (/mnt/workspace/cordova/platforms/android/cordova/lib/pluginHandlers.js:236:5)
at install (/mnt/workspace/cordova/platforms/android/cordova/lib/pluginHandlers.js:34:17)
at ActionStack.process (/mnt/workspace/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/mnt/workspace/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/mnt/workspace/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at /mnt/workspace/cordova/platforms/android/cordova/Api.js:212:74
at _fulfilled (/mnt/workspace/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/mnt/workspace/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/mnt/workspace/cordova/node_modules/q/q.js:816:13)
Uh oh!
"/mnt/workspace/cordova/plugins/cordova-plugin-pavelety-background-geolocation/android/common/src/main/java/com/marianhello/bgloc/LocationManager.java" not found!
[2019-12-30 06:08:05.56230] [IT] [LogToken] [Command Return Value: 1] [] [CBS\Utils\Utility::execCommand]
[2019-12-30 06:08:05.56244] [IT] [LogToken] [Finished Executing Command: cordova platform add] [] [CBS\Utils\Utility::execCommand]
[2019-12-30 06:08:05.56250] [IT] [LogToken] [Cordova add platform command end] [] [Cordova=>addPlatform]
[2019-12-30 06:08:05.56313] [ET] [LogToken] [[Build Failed For [android][ErrorCode :10001]][[ErrorStatus:DEPLOY_STATE_FAILED][Build failed for ][CBS\BuildEntities\CordovaAndroidBuildEntity::prepare]] [] [CBS\BuildEntities\CordovaAndroidBuildEntity::prepare]
[2019-12-30 06:08:05.56325] [ET] [LogToken] [Exception occurred at Build Phase: 1 Exception Message:
Error Message:: Build failed for
ErrorCode::10000
ErrorState::2] [] [BUILD]
[2019-12-30 06:08:05.56330] [IT] [LogToken] [Re-entering the DEPLOY PHASE] [] [BUILD STATE]
[2019-12-30 06:08:05.56336] [IT] [LogToken] [Re-entering the CLEANUP PHASE] [] [BUILD STATE]
[2019-12-30 06:08:05.56342] [ET] [LogToken] [Stopping build after catching exception with message:
Error Message:: Build failed for
ErrorCode::10000
ErrorState::2] [] [CBS\BuildEntities\CordovaBuildEntity::cleanUp]
[2019-12-30 06:08:05.56347] [IT] [LogToken] [Build Job Identifier: d0482539c59847439c433d9126316a0a] [] [Build Job Identifier]
[2019-12-30 06:08:05.56351] [IT] [LogToken] [Build FAILURE] [] [Final Build State]
[2019-12-30 06:08:10.56390] [IT] [LogToken] [Executing Command :chmod -R 777 /mnt/workspace//cordova] [] [CBS\Utils\Utility::execCommand]
[2019-12-30 06:08:10.83926] [IT] [LogToken] [Command Return Value: 0] [] [CBS\Utils\Utility::execCommand]
[2019-12-30 06:08:10.83953] [IT] [LogToken] [Finished Executing Command: chmod -R 777 /mnt/workspace//cordova] [] [CBS\Utils\Utility::execCommand]
[2019-12-30 06:08:10.83966] [IT] [LogToken] [Executing Command :rm -rf /mnt/workspace//cordova] [] [CBS\Utils\Utility::execCommand]
[2019-12-30 06:08:11.54359] [IT] [LogToken] [Command Return Value: 0] [] [CBS\Utils\Utility::execCommand]
[2019-12-30 06:08:11.54404] [IT] [LogToken] [Finished Executing Command: rm -rf /mnt/workspace//cordova] [] [CBS\Utils\Utility::execCommand]
[2019-12-30 06:08:11.54419] [IT] [LogToken] [Executing Command :rm -rf /mnt/workspace//tmp] [] [CBS\Utils\Utility::execCommand]
[2019-12-30 06:08:11.54919] [IT] [LogToken] [Command Return Value: 0] [] [CBS\Utils\Utility::execCommand]
[2019-12-30 06:08:11.54929] [IT] [LogToken] [Finished Executing Command: rm -rf /mnt/workspace//tmp] [] [CBS\Utils\Utility::execCommand]
[2019-12-30 06:08:11.54936] [IT] [LogToken] [Stopping live log...] [] [build.php]
[2019-12-30 06:08:11.54949] [IT] [LogToken] [Waiting for live log to stop] [] [build.php]
Many thanks
Archit Wahi