27
Views
4
Comments
Solved
How to fix build error OS-MABS-GEN-40019 Couldn't compile the Cordova plugin
Application Type
Mobile

I am unable to generate android application for development testing, due to Couldn't compile the Cordova plugin main/java/com/danishin/detectmocklocation/DetectMockLocation.java:13: error: cannot find symbol. The main problem is, I cant find in which plugin the problem is located, or whether the problem is even plugin related. Hence, unable to locate and fix the issue. Can someone help me find a way to locate the source of the problem or fix the issue in general? 


I've attached the android build log below, and here are a list of plugins in the main module : 

- BrightnessPlugin

- Common Plugin

- DetectVPN_Plugin

- FileDownload

- FirebaseCloudMessagingPlugin

- FirebaseRealtimeDatabase

- HTTPRequestHandler (extension)

- InAppBrowserPlugin

- JavaScriptTimingEvents

- MockGPSChecker

- NativePermissionsSettings

- OutSystemsCharts

- OutSystemsMaps

- OutSystemsUI

- PopupClickOutsideHandler

- RootJailbreakPlugin

- SettingsPlugin

- Users


AndroidBuildLog (4).txt
Screenshot 2025-03-04 095959.png
2025-11-11 13-17-51
Rajan C
Solution

Hi,
Yes, this issue is related to the mockGPSChecker plugin. I guess the plugin you are using now is outdated, so you should either map the latest version in the extensibility configuration or find another publicly available Cordova plugin 

2024-04-29 09-38-04
Jovi

Hi,
 thank you for your assistance, instead of updating it, I removed the plugin altogether and it worked.

2025-01-31 03-15-38
Irfan Ahamed Abdul Shukoor
Solution

Hi @Jovi 

Check the below link.

Android

I believe this has to be changed in the plugin or if it was changed check the release notes in the plugin or try to update it to latest version.


Thanks

2024-04-29 09-38-04
Jovi

Hi @Irfan Ahamed Abdul Shukoor,

thank you for your assistance, instead of updating it, I removed the plugin altogether and it worked.

Much appreciated. 

2025-11-11 13-17-51
Rajan C
Solution

Hi,
Yes, this issue is related to the mockGPSChecker plugin. I guess the plugin you are using now is outdated, so you should either map the latest version in the extensibility configuration or find another publicly available Cordova plugin 

2024-04-29 09-38-04
Jovi

Hi,
 thank you for your assistance, instead of updating it, I removed the plugin altogether and it worked.

2025-01-31 03-15-38
Irfan Ahamed Abdul Shukoor
Solution

Hi @Jovi 

Check the below link.

Android

I believe this has to be changed in the plugin or if it was changed check the release notes in the plugin or try to update it to latest version.


Thanks

2024-04-29 09-38-04
Jovi

Hi @Irfan Ahamed Abdul Shukoor,

thank you for your assistance, instead of updating it, I removed the plugin altogether and it worked.

Much appreciated. 

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