the superclass javax.servlet.http.httpservlet was not found on the java build path code example

Example 1: The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>javax.servlet-api</artifactId>
    <version>3.1.0</version>
    <scope>provided</scope>
</dependency>

Example 2: c# error "The name 'ViewBag' does not exist in the current context"

%LOCALAPPDATA%\Microsoft\VisualStudio\14.0\ComponentModelCache

Example 3: Android dependency 'androidx.core:core' has different version for the compile (1.0.2) and runtime (1.1.0) classpath. You should manually set the same version via DependencyResolution

I solved it by upgrading my gradle dependency in the android/build.gradle file: classpath 'com.android.tools.build:gradle:3.3.1' (I was previously on version 3.2.1)