gradle 应更新依赖版本

lnvxswe2  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(92)

我在build.gradle中有以下依赖项:

implementation 'com.yandex.android:mobileads:5.10.0'

字符串
我的应用程序的试用版成功构建,但发布版无法构建,并出现以下错误:

build.gradle:21: Error: mobileads version should be updated to 6.2.0 [MobileAdsSdkOutdatedVersion]
    implementation 'com.yandex.android:mobileads:5.10.0'
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Explanation for issues of type "MobileAdsSdkOutdatedVersion":
This is necessary to ensure the proper integration of the Yandex Mobile
Ads. The app can crash if you use an incorrect version.

Vendor: Yandex

1 errors, 0 warnings


如果我只是简单地更改6.2版本:

implementation 'com.yandex.android:mobileads:6.2'


我使用这个SDK的Java源代码停止编译,但是他们(Yandex)还没有6.2版的文档,他们的支持给我发送了5.10版文档的链接,所以不清楚如何修复Java代码中的编译器错误。
是否可以禁用此issues of type "MobileAdsSdkOutdatedVersion"并使用com.yandex.android:mobileads:5.10.0构建发布版本?
所以我可能会继续使用5.10.0,直到他们不更新他们的文档。

t2a7ltrp

t2a7ltrp1#

他们的5.10.0文档页面上说这是一个关于存档版本的文档,并链接到6.1.0版本的文档,希望它足够接近你的进度,所以请参阅https://yandex.ru/support2/mobile-ads/en/dev/android/release/6-0-0-migration升级说明。

相关问题