You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NativeScript 8.5.3 Android build failing: Could not find method task() for arguments [replaceSettings, settings_9f0ihdbhsry4akdttkhpjzk68$_run_closure1@860396b] on settings 'proto' of type org.gradle.initialization.DefaultSettings.
#1763
Closed
KevSeenan opened this issue
Jun 1, 2023
· 6 comments
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
NativeScript-Vue
CLI: 8.5.3
NativeScript: 8.5.3
Android Runtime: 8.5.0
Describe the bug
ns run android gets to Gradle build and fails. Below is the output form the terminal:
Gradle build...
+ applying user-defined configuration from /<path>/app/App_Resources/Android/settings.gradle
FAILURE: Build failed with an exception.
* Where:
Script '/<path>/app/App_Resources/Android/settings.gradle' line: 3
* What went wrong:
A problem occurred evaluating script.
> Could not find method task() for arguments [replaceSettings, settings_9f0ihdbhsry4akdttkhpjzk68$_run_closure1@860396b] on settings 'proto' of type org.gradle.initialization.DefaultSettings.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org/
BUILD FAILED in 510ms
Unable to apply changes on device: emulator-5554. Error is: Command ./gradlew failed with exit code 1.
I have tried upgrading to latest version of node (18.16.0), upgrading Android Studio (Flamingo), removing the gradle file from my home directory so it re-installs on ns run android but I'm still getting the error. Reverting to older versions of the run time / cli also doesn't help.
Any help with this would be greatly appreciated. Thanks.
The text was updated successfully, but these errors were encountered:
I have tried what you advised and now get a different error:
Gradle build...
+ applying user-defined configuration from //app/App_Resources/Android/before-plugins.gradle
+ applying user-defined configuration from //app/App_Resources/Android/before-plugins.gradle
+ setting applicationId
Script '//node_modules/@nativescript/firebase/platforms/android/include.gradle' line: 96
A problem occurred evaluating script.
Plugin with id 'com.google.gms.google-services' not found.
Have you seen this before? Does this mean I need to change firebase plugin?
I have seen that before, but I can't recall the solution (other than switching/migrating to the new firebase-core plugins). Perhaps there's a solution somewhere in the old firebase repo.
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
ns run android gets to Gradle build and fails. Below is the output form the terminal:
Here is the settings.gradle file:
Here is the app.gradle file:
Here is my package.json -
I have tried upgrading to latest version of node (18.16.0), upgrading Android Studio (Flamingo), removing the gradle file from my home directory so it re-installs on ns run android but I'm still getting the error. Reverting to older versions of the run time / cli also doesn't help.
Any help with this would be greatly appreciated. Thanks.
The text was updated successfully, but these errors were encountered: