I am seeing this error in a live app thus I have no clue why this happening. All I have is this exception log (see below). At first, I thought I applied style editTextBackgr
The main cause of this problem seems to be a missing style/theme in the AppCompat library, or a bug in the library. It happens when using either AppCompatEditText or AppCompatAutoCompleteTextView and a WebView is also added to the layout (AdMob ads are WebViews). It happens on several versions of AppCompat, like 23, 24, 25, 26.
It can be seen more clearly in a useful demo app that someone made on Github:
build.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
...
}
app/build.gradle:
buildToolsVersion '25.0.0'
gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
The solution (from here) is to explicitly add both "colorAccent" and "android:colorAccent" in your main AppTheme, in styles.xml:
or
This will now work to allow the stock spelling suggestions popup to appear, and no more crashing.
Similar reports or duplicates: