215
Views
20
Comments
[CheckGPS Plugin] Error fetching this plugin on Generate
checkgps-plugin
Mobile icon
Forge asset by Rodrigo Coutinho

When I try generate package for Mobile, give this error:

Log

[2018-08-01T13:02:17.306Z] [INFO] Start processing job request...
[2018-08-01T13:02:17.311Z] [INFO] Start generating application...
[2018-08-01T13:02:17.311Z] [INFO] Nativizer version: 1.1.x
[2018-08-01T13:02:17.312Z] [INFO] Template version: 3.1.0
[2018-08-01T13:02:17.312Z] [INFO] Creating a temporary folder for the application...
[2018-08-01T13:02:17.314Z] [INFO] Creating the required directory structure for your cordova application...
[2018-08-01T13:02:24.450Z] [INFO] Getting application resources...
[2018-08-01T13:02:24.468Z] [INFO] Processing application resources...
[2018-08-01T13:02:24.802Z] [INFO] Generating application assets...
[2018-08-01T13:02:28.662Z] [INFO] Applying configurations in the config.xml file...
[2018-08-01T13:02:28.676Z] [INFO] Applying advanced configurations in the config.xml file...
[2018-08-01T13:02:28.677Z] [INFO] Applying custom application icons...
[2018-08-01T13:02:28.677Z] [INFO] Applying custom application splashscreens...
[2018-08-01T13:02:28.677Z] [INFO] Applying application preferences...
[2018-08-01T13:02:28.685Z] [INFO] Writing your cordova preferences...
[2018-08-01T13:02:28.687Z] [INFO] Applying application accessList...
[2018-08-01T13:02:28.688Z] [INFO] Adding target platform...
[2018-08-01T13:06:04.386Z] [INFO] Applying plugins in the config.xml file...
[2018-08-01T13:06:04.386Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-camera#2.3.2-OS
[2018-08-01T13:06:04.386Z] [INFO] Plugin Action: add
[2018-08-01T13:06:31.462Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-geolocation.git#2.4.1
[2018-08-01T13:06:31.462Z] [INFO] Plugin Action: add
[2018-08-01T13:06:44.877Z] [INFO] Plugin Id: https://github.com/kelter-antunes/cordova-plugin-launch-navigator.git
[2018-08-01T13:06:44.878Z] [INFO] Plugin Action: add
[2018-08-01T13:07:00.270Z] [INFO] Plugin Id: https://github.com/OutSystems/csZBar.git#v1.3.3.OS
[2018-08-01T13:07:00.270Z] [INFO] Plugin Action: add
[2018-08-01T13:07:17.956Z] [INFO] Plugin Id: https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin#4.2.0
[2018-08-01T13:07:17.956Z] [INFO] Plugin Action: add
[2018-08-01T13:07:30.153Z] [INFO] Plugin Id: https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps
[2018-08-01T13:07:30.153Z] [INFO] Plugin Action: add
[2018-08-01T13:07:37.151Z] [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/RodrigoSC/cordova-plugin-fastrde-checkgps"
saving
Running command: npm install https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps --production --save
Command finished with error code 1: npm install,https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps,--production,--save
Error: Failed to fetch plugin https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code ENOPACKAGEJSON
npm ERR! package.json Non-registry package missing package.json: git+https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps.git.
npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mabs02/.npm/_logs/2018-08-01T13_07_37_066Z-debug.log

[2018-08-01T13:07:37.151Z] [ERROR] Build failed with the following error: Error fetching Cordova plugin: https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps.
[2018-08-01T13:07:37.152Z] [INFO] Zipping application source...
[2018-08-01T13:08:19.648Z] [INFO] Application was not successfully generated!
[2018-08-01T13:08:19.648Z] [INFO] Execution time: 363014ms

2018-06-11 09-12-53
Rodrigo Coutinho
Staff

Hello Marcel,

Thanks for the heads up! The problem should be fixed now. It was related to a change in the way we build native applications.

2018-05-30 12-16-38
Marcel M. Falcão

Rodrigo Coutinho wrote:

Hello Marcel,

Thanks for the heads up! The problem should be fixed now. It was related to a change in the way we build native applications.

Not work


2018-05-30 12-16-38
Marcel M. Falcão

Rodrigo, still getting error from this plugin man

2018-06-11 09-12-53
Rodrigo Coutinho
Staff

I've just tested and it worked fine... would you mind sending the log file, just to make sure the error is the same?

Thanks

2017-08-29 13-22-41
Daniel Brooks

Rodrigo Coutinho wrote:

I've just tested and it worked fine... would you mind sending the log file, just to make sure the error is the same?

Thanks

We're getting the same error.

Our only solution is to remove this plugin.

2018-06-11 09-12-53
Rodrigo Coutinho
Staff

Daniel Brooks wrote:

Rodrigo Coutinho wrote:

I've just tested and it worked fine... would you mind sending the log file, just to make sure the error is the same?

Thanks

We're getting the same error.

Our only solution is to remove this plugin.

Can you please send me the log? You can find it in Service Center.

Thank you


2017-08-29 13-22-41
Daniel Brooks

Rodrigo Coutinho wrote:

Daniel Brooks wrote:

Rodrigo Coutinho wrote:

I've just tested and it worked fine... would you mind sending the log file, just to make sure the error is the same?

Thanks

We're getting the same error.

Our only solution is to remove this plugin.

Can you please send me the log? You can find it in Service Center.

Thank you


Mobile Apps Generation?

There's no place to export and nothing to drill down to there.


There was no error logged in the main Error Log and the General Log just shows the deployment scripts kicking off but no error/issue regarding Cordova or mobile generation.

Where would OutSystems would tell me something useful?

2018-06-11 09-12-53
Rodrigo Coutinho
Staff

Daniel Brooks wrote:

There was no error logged in the main Error Log and the General Log just shows the deployment scripts kicking off but no error/issue regarding Cordova or mobile generation.

Where would OutSystems would tell me something useful?

You should find that information on the application page you're trying to generate in Service Center. Something like this:


2017-08-29 13-22-41
Daniel Brooks

Rodrigo Coutinho wrote:

Daniel Brooks wrote:

There was no error logged in the main Error Log and the General Log just shows the deployment scripts kicking off but no error/issue regarding Cordova or mobile generation.

Where would OutSystems would tell me something useful?

You should find that information on the application page you're trying to generate in Service Center. Something like this:


Ok, thanks.

Still no more information though.

After I removed the CheckGPS plugin, Apple was able to compile, but Android will not and it gives me a blank error for what Cordova plugin is failing.

Is it possible that the entire project got corrupted?

2018-06-11 09-12-53
Rodrigo Coutinho
Staff

Any chance you can send me the application via private message, including the plugins it is using?

2017-08-29 13-22-41
Daniel Brooks

Rodrigo Coutinho wrote:

Any chance you can send me the application via private message, including the plugins it is using?

Sorry Rodrigo, I'm unable to do that.


2024-02-29 20-20-43
JohnGB

Hi,

I also got the same problem but the build log is not the same.
Please see the attached file for reference.

Cheers,
JohnB

iSEEAndroidBuildLog.txt
2017-08-29 13-22-41
Daniel Brooks

John Guiller wrote:

Hi,

I also got the same problem but the build log is not the same.
Please see the attached file for reference.

Cheers,
JohnB


John, where did you find those logs?  I don't have access to our on-site OutSystems server but I can point someone to those logs if I know where they are.


Thanks!

2024-02-29 20-20-43
JohnGB

Daniel Brooks wrote:

John Guiller wrote:

Hi,

I also got the same problem but the build log is not the same.
Please see the attached file for reference.

Cheers,
JohnB


John, where did you find those logs?  I don't have access to our on-site OutSystems server but I can point someone to those logs if I know where they are.


Thanks!

Hi Daniel,

I got them in the Service Center > Factory; similar to the image above.

I think, for you to be able to download the build log is that you have to elevate your access though not sure of it.

Hopefully, there will be a fix for this one soon.

Cheers,
JohnB

2017-08-29 13-22-41
Daniel Brooks

John Guiller wrote:

Daniel Brooks wrote:

John Guiller wrote:

Hi,

I also got the same problem but the build log is not the same.
Please see the attached file for reference.

Cheers,
JohnB


John, where did you find those logs?  I don't have access to our on-site OutSystems server but I can point someone to those logs if I know where they are.


Thanks!

Hi Daniel,

I got them in the Service Center > Factory; similar to the image above.

I think, for you to be able to download the build log is that you have to elevate your access though not sure of it.

Hopefully, there will be a fix for this one soon.

Cheers,
JohnB

Thanks, we must not have your version.

We're running Version 10.0.603.0.


Thanks,

Daniel Brooks

2024-02-29 20-20-43
JohnGB

Hi,
Good day.

Are there any updates to this issue?

2018-06-11 09-12-53
Rodrigo Coutinho
Staff

John Guiller wrote:

Hi,
Good day.

Are there any updates to this issue?

Hello John. Sorry for the late reply, I was on vacations.

Looking at the log you sent, seems like there is a conflict between the dependencies of 2 plugins. One is installing cordova-plugin-geolocation.git version 2.4.1, while cordova-plugin-fastrde-checkgps depends on version 1.0.1.

Could you please let me know which other plugins are you using?

2024-02-29 20-20-43
JohnGB

Rodrigo Coutinho wrote:

John Guiller wrote:

Hi,
Good day.

Are there any updates to this issue?

Hello John. Sorry for the late reply, I was on vacations.

Looking at the log you sent, seems like there is a conflict between the dependencies of 2 plugins. One is installing cordova-plugin-geolocation.git version 2.4.1, while cordova-plugin-fastrde-checkgps depends on version 1.0.1.

Could you please let me know which other plugins are you using?

Hi Rodrigo,

Good day.

I am using geolocation to get the geocodes of the mobile device while the checkgps is for checking if gps is enabled or not. So basically, we use first checkgps to determine if GPS is enabled or not before determining or calculating the geocodes.

Since Geolocation doesn't have the feature to check if GPS is enabled or not, we use the CheckGPS one hence we are using both in the app.


2018-06-11 09-12-53
Rodrigo Coutinho
Staff

I've updated the plugin to be compatible with geolocation. I just tested a build on my platform and it seems to be good. Can you please try to build the native app now?

2024-02-29 20-20-43
JohnGB

Rodrigo Coutinho wrote:

I've updated the plugin to be compatible with geolocation. I just tested a build on my platform and it seems to be good. Can you please try to build the native app now?

Hi Rodrigo,

BIG thanks for the updates you made just now.
It went successful on my end.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.