Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Android compile error after upgrade - No signature of method

$
0
0

Recently taken an app using Ionic 3 built with Cordova and migrated over to Ionic 6 as well as changed to Capacitor.

Migration all done now and I have been able to build for iOS but am having an issue with Android.

When opening in Android Studio, I am getting the following error:

Caused by: groovy.lang.MissingMethodException: No signature of method: build_66ciegw2jwczi5uqnnem0k4ze.android() is applicable for argument types: (build_66ciegw2jwczi5uqnnem0k4ze$_run_closure2) values: [build_66ciegw2jwczi5uqnnem0k4ze$_run_closure2@7701ebf4]

I have searched around and tried several things such as ensuring variables.gradle have quotes around version numbers this now looks like this:

ext {
    minSdkVersion = '22'
    compileSdkVersion = '30'
    targetSdkVersion = '30'
    androidxActivityVersion = '1.4.0'
    androidxAppCompatVersion = '1.4.2'
    androidxCoordinatorLayoutVersion = '1.2.0'
    androidxCoreVersion = '1.8.0'
    androidxFragmentVersion = '1.4.1'
    coreSplashScreenVersion = '1.0.0-rc01'
    androidxWebkitVersion = '1.4.0'
    junitVersion = '4.13.2'
    androidxJunitVersion = '1.1.3'
    androidxEspressoCoreVersion = '3.4.0'
    cordovaAndroidVersion = '10.1.1'
}

There was a suggestion to use ./gradlew clean which seems to have given more information about the issue:

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_66ciegw2jwczi5uqnnem0k4ze.android() is applicable for argument types: (build_66ciegw2jwczi5uqnnem0k4ze$_run_closure2) values: [build_66ciegw2jwczi5uqnnem0k4ze$_run_closure2@66b9298d]

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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

**BUILD FAILED** in 460ms

This would seem to suggest an issue with Firebasex but I am unable to find any further details on this.

My Ionic info looks like this:

I am using Android Gradle plugin version 4.2.0 and Gradle version 7.4.2 with version 11 of the JDK.

Any pointers will be greatly appreciated, thank you in advance.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>