Closed anikethhippo closed 6 days ago
show me your package.json
tc-package.json Hi @christocracy, Thank you for responding, PFA my package.json
That's a package.json.lock
Show me your package.json
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Your Environment
cordova -v
): 11.1.0cordova platform ls
):android 11.0.0#ready
: plugin is added with the commandcordova plugin add https://github.com/transistorsoft/cordova-background-geolocation-lt.git
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' ```