transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
656 stars 277 forks source link

Plugin crashing during app build #1437

Closed anikethhippo closed 6 days ago

anikethhippo commented 2 months ago

Your Environment

Expected Behavior

App should build after adding the plugin and running cordova build.

Actual Behavior

Getting the following error: stderr: '\n' + 'FAILURE: Build completed with 2 failures.\n' + '\n' + '1: Task failed with an exception.\n' + '-----------\n' + ' Where:\n' + "Script '/tmp/tmp-32166-17oooeEwx2zk/techcart/platforms/android/cordova-background-geolocation-lt/techcart-build.gradle' line: 72\n" + '\n' + ' What went wrong:\n' + 'A problem occurred evaluating script.\n' + "> Cannot get property 'plugins' on null object\n" + '\n' + ' Try:\n' + '> Run with --stacktrace option to get the stack trace.\n' + '> Run with --info or --debug option to get more log output.\n' + '> Run with --scan to get full insights.\n' + '==============================================================================\n' + '\n' + '2: Task failed with an exception.\n' + '-----------\n' + ' What went wrong:\n' + "A problem occurred configuring project ':app'.\n" + '> compileSdkVersion is not specified. Please add it to build.gradle\n' + '\n' + ' Try:\n' + '> Run with --stacktrace option to get the stack trace.\n' + '> Run with --info or --debug option to get more log output.\n' + '> Run with --scan to get full insights.\n' + '==============================================================================\n' + '\n' + ' Get more help at https://help.gradle.org\n' + '\n' + 'BUILD FAILED in 4s\n' + 'Command failed with exit code 1: /tmp/tmp-32166-17oooeEwx2zk/techcart/platforms/android/gradlew :app:bundleDebug -b /tmp/tmp-32166-17oooeEwx2zk/techcart/platforms/android/build.gradle\n'

Steps to Reproduce

1.Use the configuration mentioned above 2.run cordova plugin add https://github.com/transistorsoft/cordova-background-geolocation-lt.git --fetch 3.run cordova build

Context

I am trying to build the app using the plugin, But crashes with the error mentioned in actual behaviour

Debug logs

Logs ``` '\n' + 'FAILURE: Build completed with 2 failures.\n' + '\n' + '1: Task failed with an exception.\n' + '-----------\n' + '* Where:\n' + "Script '/tmp/tmp-32166-17oooeEwx2zk/techcart/platforms/android/cordova-background-geolocation-lt/techcart-build.gradle' line: 72\n" + '\n' + '* What went wrong:\n' + 'A problem occurred evaluating script.\n' + "> Cannot get property 'plugins' on null object\n" + '\n' + '* Try:\n' + '> Run with --stacktrace option to get the stack trace.\n' + '> Run with --info or --debug option to get more log output.\n' + '> Run with --scan to get full insights.\n' + '==============================================================================\n' + '\n' + '2: Task failed with an exception.\n' + '-----------\n' + '* What went wrong:\n' + "A problem occurred configuring project ':app'.\n" + '> compileSdkVersion is not specified. Please add it to build.gradle\n' + '\n' + '* Try:\n' + '> Run with --stacktrace option to get the stack trace.\n' + '> Run with --info or --debug option to get more log output.\n' + '> Run with --scan to get full insights.\n' + '==============================================================================\n' + '\n' + '* Get more help at https://help.gradle.org\n' + '\n' + 'BUILD FAILED in 4s\n' + 'Command failed with exit code 1: /tmp/tmp-32166-17oooeEwx2zk/techcart/platforms/android/gradlew :app:bundleDebug -b /tmp/tmp-32166-17oooeEwx2zk/techcart/platforms/android/build.gradle\n' ```
christocracy commented 2 months ago

show me your package.json

anikethhippo commented 2 months ago

tc-package.json Hi @christocracy, Thank you for responding, PFA my package.json

christocracy commented 2 months ago

That's a package.json.lock

Show me your package.json

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 6 days ago

This issue was closed because it has been inactive for 14 days since being marked as stale.