Android Question UltimateWebView2 Error WebkitWebResourceResponse or WebResourceResponse

Juan Marrero

Active Member
Licensed User
Longtime User
Hi. I'm having this issue using UltimateWebView2 only in Release Mode (in Debug Mode works fine):

PackageAdded: package:com.prusb.pagibiz
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
** Activity (main) Resume **
java.lang.IllegalArgumentException: WebkitWebResourceResponse or WebResourceResponse as Object value expected
at igolub.android.webkit.wrappers.MyWebViewClient.shouldInterceptRequest(MyWebViewClient.java:224)
at WV.b6.a(chromium-TrichromeWebViewGoogle.aab-stable-609923030:86)
at org.chromium.android_webview.AwContentsBackgroundThreadClient.shouldInterceptRequestFromNative(chromium-TrichromeWebViewGoogle.aab-stable-609923030:15)

This is my manifest:

Manifest:
'This code will be applied to the manifest file during compilation.

'You do not need to modify it in most cases.

'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136

AddManifestText(

<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33"/>

<supports-screens android:largeScreens="true"

android:normalScreens="true"

android:smallScreens="true"

android:anyDensity="true"/>)

SetApplicationAttribute(android:icon, "@drawable/icon")

SetApplicationAttribute(android:label, "$LABEL$")

CreateResourceFromFile(Macro, Themes.LightTheme)

'End of default text.

SetApplicationAttribute(android:usesCleartextTraffic, "true")

AddPermission(android.permission.ACCESS_FINE_LOCATION)

AddPermission(android.permission.ACCESS_COARSE_LOCATION)

AddPermission(android.permission.CAMERA)

AddPermission(android.permission.RECORD_AUDIO)

AddPermission(android.permission.MODIFY_AUDIO_SETTINGS)

AddManifestText(<uses-permission

android:name="android.permission.WRITE_EXTERNAL_STORAGE"

android:maxSdkVersion="18" />

)

AddApplicationText(

<provider

android:name="android.support.v4.content.FileProvider"

android:authorities="$PACKAGE$.provider"

android:exported="false"

android:grantUriPermissions="true">

<meta-data

android:name="android.support.FILE_PROVIDER_PATHS"

android:resource="@xml/provider_paths"/>

</provider>

)

CreateResource(xml, provider_paths,

<files-path name="name" path="shared" />

)

Any help is appreciated.
 
Top