question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some weird error on Capacitor: groovy.lang.MissingMethodException:

See original GitHub issue

Bug report

CHECKLIST

  • I have reproduced the issue using the example project or provided the necessary information to reproduce the 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:open
  • Created a year ago
  • Comments:9

github_iconTop GitHub Comments

4reactions
ratkovicnikolacommented, Aug 5, 2022

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.

2reactions
rvcrofficommented, Aug 9, 2022

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found