Build failed: :app:compileReleaseJavaWithJavac FAILED

Hello, I get the following error when building the android app,

> Task :app:compileReleaseJavaWithJavac FAILED
/platforms/android/app/src/main/java/com/silkimen/cordovahttp/ error: package org.apache.cordova.file does not exist
import org.apache.cordova.file.FileUtils;
/platforms/android/app/src/main/java/com/silkimen/cordovahttp/ error: cannot find symbol
      JSONObject fileEntry = FileUtils.getFilePlugin().getEntryForFile(file);
  symbol:   variable FileUtils
  location: class CordovaHttpDownload
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.
2 errors

FAILURE: Build failed with an exception.

I guess its related to org.apache.cordova.file package; how should we go about fixing this error?

First thing to do is check that all your dependancies are up to date. Have a look at your plugins, and also see this:

Let’s see where that gets us…

Thanks, upgrading to Cordova 11 (following the guide) and adding the following plugin fixed the issue

<plugin name="cordova-plugin-androidx-adapter" />