[Background Geolocation LT] Get error when trying to publish Android
Question
background-geolocation-lt
Mobile icon
Forge component by Tye Peck
Application Type
Mobile
Platform Version
11.13.0 (Build 31107)

When I try to build the APK for Android I see this error message in the log:

[2022-02-10T02:56:52.386Z] [ERROR] [Build] Execution failed for task ':app:checkDebugDuplicateClasses'.

[2022-02-10T02:56:52.386Z] [ERROR] [Build] > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

[2022-02-10T02:56:52.386Z] [ERROR] [Build]    > Could not find com.intentfilter:android-permissions:0.1.8.

[2022-02-10T02:56:52.386Z] [ERROR] [Build]      Searched in the following locations:

[2022-02-10T02:56:52.386Z] [ERROR] [Build]        - https://dl.google.com/dl/android/maven2/com/intentfilter/android-permissions/0.1.8/android-permissions-0.1.8.pom

[2022-02-10T02:56:52.386Z] [ERROR] [Build]        - https://repo.maven.apache.org/maven2/com/intentfilter/android-permissions/0.1.8/android-permissions-0.1.8.pom

[2022-02-10T02:56:52.386Z] [ERROR] [Build]      Required by:

[2022-02-10T02:56:52.386Z] [ERROR] [Build]          project :app

I'm having the same issue. Did you manage to solve it?

I'm having the same problems with MABS 9, anyone solved this already?

same build errors here, guidance on how to resolve these issues is appreciated.

i tried all other background location plugins, all have build errors.

these are the errors i am getting:

[2023-03-15T01:08:03.972Z] [ERROR] [Build] -- v --

[2023-03-15T01:08:03.972Z] [ERROR] [Build] The build phase failed to complete!

[2023-03-15T01:08:03.972Z] [ERROR] [Build] Reason: Couldn't generate your app. If the problem persists, check our documentation for more information.

[2023-03-15T01:08:03.973Z] [ERROR] [Build] Additional information:

[2023-03-15T01:08:03.973Z] [ERROR] [Build] FAILURE: Build completed with 2 failures.

[2023-03-15T01:08:03.973Z] [ERROR] [Build] 1: Task failed with an exception.

[2023-03-15T01:08:03.973Z] [ERROR] [Build] -----------

[2023-03-15T01:08:03.973Z] [ERROR] [Build] * What went wrong:

[2023-03-15T01:08:03.973Z] [ERROR] [Build] Execution failed for task ':app:checkDebugDuplicateClasses'.

[2023-03-15T01:08:03.973Z] [ERROR] [Build] > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

[2023-03-15T01:08:03.973Z] [ERROR] [Build]    > Could not find com.intentfilter:android-permissions:0.1.8.

[2023-03-15T01:08:03.973Z] [ERROR] [Build]      Searched in the following locations:

[2023-03-15T01:08:03.973Z] [ERROR] [Build]        - https://dl.google.com/dl/android/maven2/com/intentfilter/android-permissions/0.1.8/android-permissions-0.1.8.pom

[2023-03-15T01:08:03.973Z] [ERROR] [Build]        - https://repo.maven.apache.org/maven2/com/intentfilter/android-permissions/0.1.8/android-permissions-0.1.8.pom

[2023-03-15T01:08:03.973Z] [ERROR] [Build]        - file:source/platforms/android/app/libs/com/intentfilter/android-permissions/0.1.8/android-permissions-0.1.8.pom

[2023-03-15T01:08:03.973Z] [ERROR] [Build]      Required by:

[2023-03-15T01:08:03.973Z] [ERROR] [Build]          project :app

[2023-03-15T01:08:03.973Z] [ERROR] [Build] * Try:

[2023-03-15T01:08:03.973Z] [ERROR] [Build] > Run with --stacktrace option to get the stack trace.

[2023-03-15T01:08:03.973Z] [ERROR] [Build] > Run with --info or --debug option to get more log output.

[2023-03-15T01:08:03.973Z] [ERROR] [Build] > Run with --scan to get full insights.

[2023-03-15T01:08:03.973Z] [ERROR] [Build] ==============================================================================

[2023-03-15T01:08:03.973Z] [ERROR] [Build] 2: Task failed with an exception.

[2023-03-15T01:08:03.973Z] [ERROR] [Build] -----------

[2023-03-15T01:08:03.973Z] [ERROR] [Build] * What went wrong:

[2023-03-15T01:08:03.973Z] [ERROR] [Build] java.lang.StackOverflowError (no error message)

[2023-03-15T01:08:03.973Z] [ERROR] [Build] * Try:

[2023-03-15T01:08:03.973Z] [ERROR] [Build] > Run with --stacktrace option to get the stack trace.

[2023-03-15T01:08:03.973Z] [ERROR] [Build] > Run with --info or --debug option to get more log output.

[2023-03-15T01:08:03.973Z] [ERROR] [Build] > Run with --scan to get full insights.

[2023-03-15T01:08:03.973Z] [ERROR] [Build] ==============================================================================

[2023-03-15T01:08:03.973Z] [ERROR] [Build] * Get more help at https://help.gradle.org

[2023-03-15T01:08:03.973Z] [ERROR] [Build] BUILD FAILED in 15s

[2023-03-15T01:08:03.973Z] [ERROR] [Build] Command failed with exit code 1: source/platforms/android/gradlew cdvBuildDebug -b source/platforms/android/build.gradle --parallel

[2023-03-15T01:08:03.973Z] [ERROR] [Build] -- ^ --

[2023-03-15T01:08:03.973Z] [INFO] [Build] Application was not successfully generated!

[2023-03-15T01:08:05.185Z] [INFO] [Build] Execution time: 104308 ms


Same issue.

Both with MABS 8.1 and 9.0.

The log ERRORS:

[2023-03-29T16:17:15.900Z] [ERROR] [Build] -- v --

[2023-03-29T16:17:15.900Z] [ERROR] [Build] The build phase failed to complete!

[2023-03-29T16:17:15.901Z] [ERROR] [Build] Reason: Couldn't generate your app. If the problem persists, check our documentation for more information.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] Additional information:

[2023-03-29T16:17:15.901Z] [ERROR] [Build] Note: Some input files use or override a deprecated API.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] Note: Recompile with -Xlint:deprecation for details.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] FAILURE: Build completed with 2 failures.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] 1: Task failed with an exception.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] -----------

[2023-03-29T16:17:15.901Z] [ERROR] [Build] * What went wrong:

[2023-03-29T16:17:15.901Z] [ERROR] [Build] Execution failed for task ':app:checkDebugDuplicateClasses'.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

[2023-03-29T16:17:15.901Z] [ERROR] [Build]    > Could not find com.intentfilter:android-permissions:0.1.8.

[2023-03-29T16:17:15.901Z] [ERROR] [Build]      Searched in the following locations:

[2023-03-29T16:17:15.901Z] [ERROR] [Build]        - https://dl.google.com/dl/android/maven2/com/intentfilter/android-permissions/0.1.8/android-permissions-0.1.8.pom

[2023-03-29T16:17:15.901Z] [ERROR] [Build]        - https://repo.maven.apache.org/maven2/com/intentfilter/android-permissions/0.1.8/android-permissions-0.1.8.pom

[2023-03-29T16:17:15.901Z] [ERROR] [Build]        - file:source/platforms/android/app/libs/com/intentfilter/android-permissions/0.1.8/android-permissions-0.1.8.pom

[2023-03-29T16:17:15.901Z] [ERROR] [Build]      Required by:

[2023-03-29T16:17:15.901Z] [ERROR] [Build]          project :app

[2023-03-29T16:17:15.901Z] [ERROR] [Build] * Try:

[2023-03-29T16:17:15.901Z] [ERROR] [Build] > Run with --stacktrace option to get the stack trace.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] > Run with --info or --debug option to get more log output.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] > Run with --scan to get full insights.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] ==============================================================================

[2023-03-29T16:17:15.901Z] [ERROR] [Build] 2: Task failed with an exception.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] -----------

[2023-03-29T16:17:15.901Z] [ERROR] [Build] * What went wrong:

[2023-03-29T16:17:15.901Z] [ERROR] [Build] java.lang.StackOverflowError (no error message)

[2023-03-29T16:17:15.901Z] [ERROR] [Build] * Try:

[2023-03-29T16:17:15.901Z] [ERROR] [Build] > Run with --stacktrace option to get the stack trace.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] > Run with --info or --debug option to get more log output.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] > Run with --scan to get full insights.

[2023-03-29T16:17:15.901Z] [ERROR] [Build] ==============================================================================

[2023-03-29T16:17:15.901Z] [ERROR] [Build] * Get more help at https://help.gradle.org

[2023-03-29T16:17:15.901Z] [ERROR] [Build] BUILD FAILED in 21s



Same issue here, did anyone got a solution for it?

Thanks

We were able to get the plugin running by referencing the official Github repo (instead of the forked version). Update the Extensibility Configuration plugin url to: https://github.com/transistorsoft/cordova-background-geolocation-lt


Like so:

It works!

Tnx.

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