gpt4 book ai didi

android - 程序类型已经存在:com.squareup.picasso.Action $ RequestWeakReference

转载 作者:行者123 更新时间:2023-12-03 04:58:12 27 4
gpt4 key购买 nike

当我尝试编译代码时,Android Studio 3.2.1上出现以下错误

Program type already present: com.squareup.picasso.Action$RequestWeakReference

我的gradle代码:
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.firebase:firebase-inappmessaging-display:17.0.4'
implementation "com.android.support:appcompat-v7:$supportlib_version"
implementation "com.android.support:cardview-v7:$supportlib_version"
implementation "com.android.support:design:$supportlib_version"
implementation "com.android.support:recyclerview-v7:$supportlib_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.google.android.exoplayer:exoplayer:$exoplayer_version"
implementation "com.google.android.exoplayer:extension-rtmp:$exoplayer_version"
implementation 'com.google.android.gms:play-services-ads:17.1.1'
implementation 'com.google.firebase:firebase-core:16.0.5'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.squareup.okhttp3:logging-interceptor:3.7.0'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.onesignal:OneSignal:3.10.3'
implementation 'com.balysv:material-ripple:1.0.2'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.android.ads.consent:consent-library:1.0.6'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.6@aar') {
transitive = true;
}
implementation('com.crashlytics.sdk.android:answers:1.4.4@aar') {
transitive = true;
}

}

应用插件:“com.google.gms.google-services”

如何修复我的gradle脚本来修复错误?

最佳答案

不确定对您是否适用,因为我不认为它是Gradle的依赖项,但是当我在/ libs目录中有Picasso .jar文件并将其列为我的gradle脚本中的依赖项时,我遇到了类似的错误。我从我的lib目录中删除了它,只是将依赖项留在了gradle中,它起作用了。 .jar文件是否在某处两次?

关于android - 程序类型已经存在:com.squareup.picasso.Action $ RequestWeakReference,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53570483/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com