-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I believe you can just delete the I recommend copying over the defaults from a fresh project: |
Thanks @rigor789 for the quick reply. I have tried what you advised and now get a different error: Gradle build... Script '//node_modules/@nativescript/firebase/platforms/android/include.gradle' line: 96 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. Actually, found this: EddyVerbruggen/nativescript-plugin-firebase#1882 (comment) But note that the old firebase plugin is deprecated, so it's best to migrate to the new one instead. |
Will look into the post and migrating. Thanks again for the speedy response. Have a good day! |
Update Migrating worked so closing the issue. |
I followed him EddyVerbruggen/nativescript-plugin-firebase#1882 (comment) |
Uh oh!
There was an error while loading. Please reload this page.
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: