gpt4 book ai didi

android - 不兼容的类型 : String cannot be converted to OnInitializationCompleteListener

转载 作者:行者123 更新时间:2023-12-04 07:30:11 25 4
gpt4 key购买 nike

我正在使用 android Studio 2021.1,奇怪的是,在较早更新我的库后,我在编译应用程序时遇到此错误 incompatible types: String cannot be converted to OnInitializationCompleteListener

MobileAds.initialize(this, getString(R.string.admob_banner_id));
mAdView = findViewById(R.id.adView); //The line that returns the error to me
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);

最佳答案

类型转换

mAdView = (AdView)findViewById(R.id.adView);

关于android - 不兼容的类型 : String cannot be converted to OnInitializationCompleteListener,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67989141/

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