Android Question webview -> android.content.res.Resources$NotFoundException

scsjc

Well-Known Member
Licensed User
Longtime User
I found in Crashlytics, error "android.content.res.Resources$NotFoundException" on line:

WebView1.Initialize("webview1")

does anyone know the solution?... (i have android:targetSdkVersion="29" in manifest)




upload_2019-9-15_15-34-54.png




Tthanks ;)
 
Last edited:

scsjc

Well-Known Member
Licensed User
Longtime User
Are you using an old theme?

What do you mean?

i use inside code:
B4X:
library : AppCompat 4.00
#Extends:android.support.v7.app.AppCompatActivity
ToolBar.PopupTheme=ToolBar.THEME_LIGHT

in manifest:
B4X:
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
    <resources>
        <style name="MyAppTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
            <item name="colorPrimary">#ffffff</item>
            <item name="colorPrimaryDark">#00849d</item>
            <item name="colorAccent">#009bb8</item>
            <item name="windowNoTitle">true</item>
            <item name="windowActionBar">false</item>
            <item name="windowActionModeOverlay">true</item>
            <item name="android:statusBarColor">@android:color/transparent</item>
            <item name="android:windowDrawsSystemBarBackgrounds">true</item>
            <item name="android:navigationBarColor">#000000</item>
        </style>
    </resources>
)


i found on GooglePlay Console:
upload_2019-9-15_17-26-53.png


Thanks :)
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
This is a different error. Are you doing anything special with WebView?
no, the code is very simple...
I've only detected this bug in a user with version 5.0.2 ... I don't know if this will have anything to do with it?
 
Upvote 0
Top