Some weird error on Capacitor: groovy.lang.MissingMethodException:
See original GitHub issueBug report
CHECKLIST
-
I have read the issue reporting guidelines
-
I confirm this is a suspected bug or issue that will affect other users
- I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
- I have read the documentation thoroughly and it does not help solve my issue.
- I have checked that no similar issues (open or closed) already exist.
Current behavior:
if i want to run it in Capacitor i get this error
FAILURE: Build failed with an exception.
* Where:
Script '.../node_modules/cordova-plugin-firebasex/src/android/build.gradle' line: 21
* What went wrong:
A problem occurred evaluating script.
> No signature of method: build_ak6ui7jj1gqcn8e9jnboemdff.android() is applicable for argument types: (build_ak6ui7jj1gqcn8e9jnboemdff$_run_closure2) values: [build_ak6ui7jj1gqcn8e9jnboemdff$_run_closure2@2c3a1342]
there is an NPM package of your package that fix this issue https://www.npmjs.com/package/cordova-plugin-firebasex-fix could u check that ?
Issue Analytics
- State:
- Created a year ago
- Comments:9
Top Results From Across the Web
Android Studio error - groovy.lang.MissingMethodException ...
It's failing because of some invalid declaration inside the "android" block. In your case, it seems that it's only because of the value...
Read more >Android compile error after upgrade - No signature of method
When opening in Android Studio, I am getting the following error: Caused by: groovy.lang.MissingMethodException: No signature of method: ...
Read more >ERROR:groovy.lang.MissingMethodException: No signa...
Solved: I have groovy util class as below: package com.hypers.test.apitest.util import groovy.sql.Sql class DataBaseUtil { static def ...
Read more >Newest 'classpath' Questions - Stack Overflow
groovy.lang.MissingMethodException No signature of method. I am getting this error, and when I changed the method to getClassPathList().get(0) to getClassPath() ...
Read more >findTestObject throwing error groovy.lang ...
And getting the error below: Test Cases/TestID01/ID01 FAILED. Reason: groovy.lang.MissingMethodException: No signature of method: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The problem could be if you used Capacitor migration tool from v3 to v4. In my case, migrator added some new versions inside variables.gradle file without using quotes. For example, I had 10.1.1 instead of ‘10.1.1’ in my variables.gradle file. Once I added single quotes to all x.x.x versions (where it’s missing), build succeeded.
Thank you! I used capacitor migration tool today and got that error. My variables.gradle file had 5 variables with no single quotes and your solution solved the problem. Just the 3 first variables must be number (minSdkVersion, compileSdkVersion and targetSdkVersion).