[2024-02-21T15:08:02.806Z] [ERROR] [Build] The build phase failed to complete!
[2024-02-21T15:08:02.806Z] [ERROR] [Build] Reason: Couldn't compile the Cordova plugin main/java/com/marianhello/bgloc/data/sqlite/SQLiteOpenHelper.java:121: error: ')' expected. Review your plugin configurations and check our documentation for more information if the problem persists.
[2024-02-21T15:08:02.806Z] [ERROR] [Build] Additional information:
[2024-02-21T15:08:02.807Z] [ERROR] [Build] Note: Some input files use or override a deprecated API.
[2024-02-21T15:08:02.807Z] [ERROR] [Build] Note: Recompile with -Xlint:deprecation for details.
[2024-02-21T15:08:02.807Z] [ERROR] [Build] source/platforms/android/app/src/main/java/com/marianhello/bgloc/data/sqlite/SQLiteOpenHelper.java:121: error: ')' expected
[2024-02-21T15:08:02.807Z] [ERROR] [Build] " SET " + LocationEntry.COLUMN_NAME_VERTICAL_ACCURACY + "= -1,"
[2024-02-21T15:08:02.807Z] [ERROR] [Build] ^
[2024-02-21T15:08:02.807Z] [ERROR] [Build] source/platforms/android/app/src/main/java/com/marianhello/bgloc/data/sqlite/SQLiteOpenHelper.java:122: error: not a statement
[2024-02-21T15:08:02.807Z] [ERROR] [Build] LocationEntry.COLUMN_NAME_HAS_VERTICAL_ACCURACY + "= 0"
[2024-02-21T15:08:02.807Z] [ERROR] [Build] source/platforms/android/app/src/main/java/com/marianhello/bgloc/data/sqlite/SQLiteOpenHelper.java:122: error: ';' expected
[2024-02-21T15:08:02.807Z] [ERROR] [Build] 3 errors
Hello,
check the SQLiteOpenHelper.java file and make sure that the string concatenation is correct, with the correct closing characters ')' and ';'. -Also make sure that there are no syntax or logic errors in the line mentioned.
After correcting the problem in the source code, try rebuilding the application to check if the error has been resolved. If the problem persists, review the Cordova plugin settings.
Hello Luis,
it seem to be an issue in the dependency github project:
As I see it, the issue is in here, as Castro mentioned, missing "+" and ")" and ";".
I have the issue as well on ODC side using this Forge Component.
I try to contact the Forge provider and the github repo manager.
Best regards
Jens
Raised an Issue on Github: https://github.com/HaylLtd/cordova-background-geolocation-plugin/issues/180
Hello @Luis Lusquinhos
the issue has been solved on the github project.
You can compile your project now, it should work again! :-)