appsflyer-flutter-plugin icon indicating copy to clipboard operation
appsflyer-flutter-plugin copied to clipboard

Android Build Failed - No signature of method

Open Kang-Kim1 opened this issue 1 year ago • 4 comments

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.

Kang-Kim1 avatar Oct 20 '23 16:10 Kang-Kim1

👋 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 [email protected]. When submitting the ticket, please specify:

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

github-actions[bot] avatar Oct 20 '23 19:10 github-actions[bot]

I have the same issue above

manhtran-itr avatar Nov 02 '23 02:11 manhtran-itr

I solved it by using the version appsflyer_sdk: 6.11.3

devpawann avatar Jan 14 '24 11:01 devpawann

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' }

YuWenHaoqq avatar Apr 03 '24 06:04 YuWenHaoqq