Errors are being caused in several Android apps apparently this problem happens today March 22, 2021
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** pid: 0, tid: 0 >>> com.tototita.rangers <<<
backtrace: #00 pc 00000000038621f0 /data/app/~~Qq25ordsRSoMvSoV_QF_g==/com.google.android.trichromelibrary_438909034-aO6v1fs0CgGsaddpcsZCMg==/base.apk!libmonochrome_64.so (offset 0x646000)
Apparently the problem only occurs on Android 10+ devices
According to the error, it seems to indicate that it is in a WebView and when reviewing an application in which this problem is experienced, it closes precisely when loading an ad
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adViewKart"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-xxxxxx/6xxxxxxxxxxxxxx">
</com.google.android.gms.ads.AdView>
This is the code which is very common and should not cause any problems,
import com.google.android.gms.ads.AdRequest
import com.google.android.gms.ads.AdView
class MainActivity : AppCompatActivity() {
lateinit var mAdViewKart : AdView
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
MobileAds.initialize(this) {}
mAdViewKart = findViewById(R.id.adViewKart)
val adRequest = AdRequest.Builder().build()
mAdViewKart.loadAd(adRequest)
}
}
Basically your problem is that you are calling a
banner
withid
a but in youractivity
el itbanner
has anotherid
. Look at the following line:But, in your way of creating the ad:
Solution:
Apparently the problem is an update of the WebView which has a bug,
https://www.theverge.com/2021/3/22/22345696/google-android-apps-crashing-fix-system-webview
Even Samsung responded:
The solution for now is to uninstall the WebView update
Go to
Configuración
>Aplicaciones
> tap the three dots in the top right corner > show system apps > search"Android System WebView"
> select"Desinstalar actualizaciones"
. When performing these steps it is recommended to restart the phone.Update: Apparently there is already a solution, the official statement from Google is:
The problem with Gmail has been resolved. We apologize for the inconvenience and thank you for your patience and continued support. Please rest assured that system reliability is a top priority at Google, and we are making continuous improvements to make our systems better.
Updating the Android WebView and Google Chrome system via Google Play should now resolve the issue for all users.
For more information about updating Android apps, see: https://support.google.com/googleplay/answer/113412