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 Failed - No signature of method #294

Open
Kang-Kim1 opened this issue Oct 20, 2023 · 4 comments
Open

Android Build Failed - No signature of method #294

Kang-Kim1 opened this issue Oct 20, 2023 · 4 comments
Labels

Comments

@Kang-Kim1
Copy link

Kang-Kim1 commented Oct 20, 2023

The following error occurs when trying to build or run my flutter project on Android device :

FAILURE: Build failed with an exception.

* Where:
Build file '{~~~}/.pub-cache/hosted/pub.dartlang.org/appsflyer_sdk-6.12.2/android/build.gradle' line: 17

* What went wrong:
A problem occurred evaluating project ':appsflyer_sdk'.
> No signature of method: build_4ozmr53o1s07jb7newqa4ny7n.android() is applicable for argument types: (build_4ozmr53o1s07jb7newqa4ny7n$_run_closure2) values: [build_4ozmr53o1s07jb7newqa4ny7n$_run_closure2@287d5ae1]

* 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

Additional info :

  • Gradle version: distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.2-bin.zip
  • Flutter version: 3.3.1

I spent 2 whole days to resolve the issue but no luck so far,,,
(It seems not many people are struggling with the same issue..)

I would be so glad if anyone can share some valuable knowledges to resolve this type of exception...

Please let me know if any further information is needed!
Thanks.

@github-actions
Copy link

👋 Hi @Kang-Kim1 and Thank you for reaching out to us.
In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com.
When submitting the ticket, please specify:

  • ✅ your AppsFlyer sign-up (account) email
  • ✅ app ID
  • ✅ production steps
  • ✅ logs
  • ✅ code snippets
  • ✅ and any additional relevant information.

@manhtran-itr
Copy link

I have the same issue above

@devpawann
Copy link

I solved it by using the version
appsflyer_sdk: 6.11.3

@YuWenHaoqq
Copy link

YuWenHaoqq commented Apr 3, 2024

I solved this problem
flutter_3.0.5/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-5.0.11/android/build.gradle
Delete the namespace in this file and add it to flutter_3.0.5/.pub-cache/hosted/pub.dartlang.org/appsflyer_sdk-6.13.2/android/src/main/AndroidManifest.xml
Add package in



group 'com.appsflyer.appsflyersdk'
version '1.0-SNAPSHOT'
buildscript {
repositories {
mavenCentral()
google()
}
}

rootProject.allprojects {
repositories {
mavenCentral()
google()
}
}
apply plugin: 'com.android.library'
android {
defaultConfig {
minSdkVersion 16
compileSdk 31
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

    multiDexEnabled true
}
lintOptions {
    disable 'InvalidPackage'
}

// namespace 'com.appsflyer.appsflyersdk'
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.appsflyer:af-android-sdk:6.13.0'
implementation 'com.android.installreferrer:installreferrer:2.1'
}

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

No branches or pull requests

5 participants