AppsFlyerSDK / appsflyer-flutter-plugin

Flutter Plugin for AppsFlyer SDK
MIT License
142 stars 111 forks source link

Android Build Failed - No signature of method #294

Open Kang-Kim1 opened 8 months ago

Kang-Kim1 commented 8 months ago

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 :

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[bot] commented 8 months ago

šŸ‘‹ 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:

manhtran-itr commented 8 months ago

I have the same issue above

devpawann commented 5 months ago

I solved it by using the version appsflyer_sdk: 6.11.3

YuWenHaoqq commented 2 months ago

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