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.