i updated my capacitor version of my ionic app and trying to generate android app to target api 35 (just to set the latest possible)
Ionic CLI : 6.17.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.9.4
@angular-devkit/build-angular : 0.1102.19
@angular-devkit/schematics : 11.2.19
@angular/cli : 11.1.4
@ionic/angular-toolkit : 3.1.1
Capacitor CLI : 3.9.0
@capacitor/android : 3.0.0-beta.3
@capacitor/core : 3.9.0
And im geting error when trying to generate app on android studio:
error: cannot find symbol
WebView webView = activity.findViewById(R.id.webview);
^
symbol: variable webview
location: class id
Before this, i had a problem with androidManifest, where it has package name on it, so i removed, and now it cannot find webview. I know that there is a lot of posts here, but all the given solutions didn’t work for me.
if needed, this is my app/java/res/layout/activity_main.xml:
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>