Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Getting strange webview error when trying to run app on Android 7 API version 25
Post Body

Hi there,

I am using Ionic (capacitor) 6.16.3 to build an app that will run on Android 7 API version 25 but I get a white screen after the splashscreen.

I do get a strange error in Android Studio when running the app on the emulator (see below). I've searched Google for this and it suggests a webview ID needs adding to the activity_main.xml but this doesn't work.

I was wondering if anyone had come across this before.

/Users/xxxxx/www/propay/paytest/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/Bridge.java:1281: error: incompatible types: bad type in conditional expression

WebView webView = this.fragment != null ? fragment.getView().findViewById(R.id.webview) : activity.findViewById(R.id.webview);

^

View cannot be converted to WebView

Author
Account Strength
90%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
691
Link Karma
293
Comment Karma
398
Profile updated: 2 days ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago