Cordova build error for android

We recently started seeing the following build error, for ANDROID only. Ios build is successful. We are using meteor version 1.11.1. We did meteor remove-platform android and then meteor add-platform android. That did not help in solving the issue.
Is this due to android sdk version probelm? if yes which version should we be using?

While building Cordova app for platform Android:
   Error: .meteor/local/cordova-build/platforms/android/gradlew: Command failed with exit code 1 Error output:
.meteor/local/cordova-build/platforms/android/app/src/main/java/com/meteor/webapp/WebAppLocalServer.java:17: error: cannot find symbol
   import org.apache.cordova.CordovaPluginPathHandler;
   ^
   symbol:   class CordovaPluginPathHandler
   location: package org.apache.cordova
.meteor/local/cordova-build/platforms/android/app/src/main/java/com/meteor/webapp/WebAppLocalServer.java:494: error: cannot find symbol
   public CordovaPluginPathHandler getPathHandler() {
   ^
   symbol:   class CordovaPluginPathHandler
   location: class WebAppLocalServer
.meteor/local/cordova-build/platforms/android/app/src/main/java/com/meteor/webapp/WebAppLocalServer.java:493: error: method does not override or
   implement a method from a supertype
   @Override
   ^
.meteor/local/cordova-build/platforms/android/app/src/main/java/com/meteor/webapp/WebAppLocalServer.java:495: error: cannot find symbol
   return new CordovaPluginPathHandler(new androidx.webkit.WebViewAssetLoader.PathHandler() {
   ^
   symbol:   class CordovaPluginPathHandler
   location: class WebAppLocalServer
   Note: Some input files use or override a deprecated API.
   Note: Recompile with -Xlint:deprecation for details.
   Note: Some input files use unchecked or unsafe operations.
   Note: Recompile with -Xlint:unchecked for details.
   4 errors
   
   FAILURE: Build failed with an exception.

Hi, @anjandv . Can you confirm which java version you are using?

java -version

You should be using 1.8.

Below is the output for the command java -version.

java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)java version "1.8.0_231"

I also tried to remove Gradle and installed it again. But facing the same error.