Flutter projemi çalıştırdığımda bu hata çıkıyor sebebini bulamadım Yardımcı olur musunuz?
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDupli catesRunnable
> Duplicate class com.google.firebase.iid.FirebaseInstanceIdReceiver found in modules jetified-firebase-iid-20.1.5-runtime (com.google.firebase:firebase-iid:20.1.5) and jetified-firebase-messaging-23.4.1-runtime (com.google.firebase:firebase-messaging:23.4.1)
Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
* 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
flutter projemde :app:checkDebugDuplicateClasses hatası
5
●78
- 10-05-2024, 14:36:58Üyeliği durdurulduYapay zeka ne diyor baktınız mı hocam?
Chat GPT
implementation('com.google.firebase:firebase-messaging:23.4.1') {
exclude group: 'com.google.firebase', module: 'firebase-iid'
}
Blackbox AI
android {
// ...
}
dependencies {
implementation 'com.google.firebase:firebase-messaging:23.4.1'
implementation ('com.google.firebase:firebase-iid:20.1.5') {
exclude group: 'com.google.firebase', module: 'firebase-messaging'
}
} - 10-05-2024, 14:46:10bunu diyor:
bu hata, Android projesinin derlenmesi sırasında :app:checkDebugDuplicateClasses görevinin başarısız olması nedeniyle oluştu. Hatanın açıklamasına göre, com.google.firebase.iid.FirebaseInstanceIdReceiver sınıfının iki farklı modülde (com.google.firebase:firebase-iid:20.1.5 ve com.google.firebase:firebase-messaging:23.4.1) bulunduğu belirtiliyor. Bu, çakışan sınıfların projede kullanılması nedeniyle oluşmuş olabilir. Çakışan sınıflar genellikle farklı versiyonlardaki kütüphanelerden kaynaklanır.
VelatErtach adlı üyeden alıntı: mesajı görüntüle - 10-05-2024, 15:31:45Dediğini yaptıktan sonra bu hata çıktı sonra flutter create . komutunu çalıştırdım ve tekrar en baştaki hatam çıktı:
package identifier or launch activity not found.
Please check C:UsersmertDesktopprojelerdortbucuksaniyedortbucuk saniyeandroidappsrcmainAndroidManifest.xml for errors.
No application found for TargetPlatform.android_arm64.
Is your project missing an androidappsrcmainAndroidManifest.xml?
Consider running "flutter create ." to create one.
FurkişTV adlı üyeden alıntı: mesajı görüntüle