Skip to content
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

Android build error: sign_in_with_apple No signature of method #378

Closed
devcenter opened this issue Jul 1, 2023 · 5 comments
Closed

Android build error: sign_in_with_apple No signature of method #378

devcenter opened this issue Jul 1, 2023 · 5 comments

Comments

@devcenter
Copy link

Anyone ever experience this when build in vscode windows for android?

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Dell\AppData\Local\Pub\Cache\hosted\pub.dev\sign_in_with_apple-5.0.0\android\build.gradle' line: 27

* What went wrong:
A problem occurred evaluating project ':sign_in_with_apple'.
> No signature of method: build_empoc3cdx3tn5x8tmya1o0xdh.android() is applicable for argument types: (build_empoc3cdx3tn5x8tmya1o0xdh$_run_closure2) values: [build_empoc3cdx3tn5x8tmya1o0xdh$_run_closure2@3bbc3609]

flutter doctor -v

[√] Flutter (Channel stable, 3.7.7, on Microsoft Windows [Version 10.0.19044.2130], locale en-US)
    • Flutter version 3.7.7 on channel stable at D:\_development\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2ad6cd72c0 (4 months ago), 2023-03-08 09:41:59 -0800
    • Engine revision 1837b5be5f
    • Dart version 2.19.4
    • DevTools version 2.20.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Dell\AppData\Local\Android\Sdk
    • Platform android-33, build-tools 30.0.3
    • ANDROID_SDK_ROOT = C:\Users\Dell\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code, 64-bit edition (version 1.77.3)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.40.0

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 114.0.5735.199
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 114.0.1823.43

[√] HTTP Host Availability
    • All required HTTP hosts are available
@NachiketaVadera
Copy link

NachiketaVadera commented Jul 4, 2023

+1

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\nachiketa.vadera_qui\AppData\Local\Pub\Cache\hosted\pub.dev\sign_in_with_apple-5.0.0\android\build.gradle' line: 52

* What went wrong:
A problem occurred evaluating project ':sign_in_with_apple'.
> Could not find method disable() for arguments [InvalidPackage] on task ':sign_in_with_apple:lint' of type com.android.build.gradle.tasks.LintGlobalTask.

* 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 3s
Exception: Gradle task assembleDevDebug failed with exit code 1

@newntech
Copy link

newntech commented Jul 4, 2023

@devcenter not sure if this helps, but I got mine building after getting the same error as original post by updating Gradle.

android/build.gradle

buildscript {  
    ...
    dependencies {
       ...
-      classpath 'com.android.tools.build:gradle:4.2.2'
+      classpath 'com.android.tools.build:gradle:7.3.0'
    }
}

android/gradle/wrapper/gradle-wrapper.properties

-  distributionUrl=https://services.gradle.org/distributions/gradle-6.9-all.zip
+  distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip

@HenriBeck
Copy link
Member

Could it be that your created the project with an earlier flutter version and with v5 of this library we updated the internals to use gradle 7 ec.

@devcenter
Copy link
Author

devcenter commented Jul 19, 2023 via email

@premtemp1
Copy link

premtemp1 commented Oct 9, 2023

I am using distributionUrl=https://services.gradle.org/distributions/gradle-7.2-bin.zip
and classpath 'com.android.tools.build:gradle:4.2.2'

same error
A problem occurred evaluating project ':sign_in_with_apple'.

No signature of method: build_3l5snuh0r664u7y2v5rnvwnox.android() is applicable for argument types: (build_3l5snuh0r664u7y2v5rnvwnox$_run_closure2) values: [build_3l5snuh0r664u7y2v5rnvwnox$_run_closure2@1f07b88a]

Please let me know what is correct version to use..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants