This was previously building/running fine, but now using cordova-android 13.0 (previously 9) and getting a run-time error. Provided details below of the error and some relevant files. Let me know if any more information would be useful.
**java.lang.RuntimeException: Unable to start activity ComponentInfo{com.primetics.genware/com.primetics.genware.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.**
Main Activity looks like this
*package com.primetics.genware;*
*import android.os.Bundle;*
*import org.apache.cordova.*;*
*public class MainActivity extends CordovaActivity*
*{*
* @Override*
* public void onCreate(Bundle savedInstanceState)*
* {*
* super.onCreate(savedInstanceState);*
* // enable Cordova apps to be started in the background*
* Bundle extras = getIntent().getExtras();*
* if (extras != null && extras.getBoolean("cdvStartInBackground", false)) {*
* moveTaskToBack(true);*
* }*
* // Set by <content src="index.html" /> in config.xml*
* loadUrl(launchUrl);*
* }*
*}*
Android-manifest.xml
*<?xml version='1.0' encoding='utf-8'?>*
*<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" xmlns:android="http://schemas.android.com/apk/res/android">*
* <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />*
* <uses-permission android:name="android.permission.INTERNET" />*
* <application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:networkSecurityConfig="@xml/network_security_config" android:supportsRtl="true">*
* <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" android:exported="true" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.Translucent" android:windowSoftInputMode="adjustResize">*
* <intent-filter android:label="@string/launcher_name">*
* <action android:name="android.intent.action.MAIN" />*
* <category android:name="android.intent.category.LAUNCHER" />*
* </intent-filter>*
* </activity>*
* <provider android:authorities="${applicationId}.cdv.core.file.provider" android:exported="false" android:grantUriPermissions="true" android:name="androidx.core.content.FileProvider">*
* <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/cdv_core_file_provider_paths" />*
* </provider>*
* </application>*
* <queries>*
* <intent>*
* <action android:name="android.media.action.IMAGE_CAPTURE" />*
* </intent>*
* </queries>*
*</manifest>*
gradle.properties
*org.gradle.jvmargs=-Xmx2048m*
*android.useAndroidX=true*
*android.enableJetifier=true*