Execution failed for task ‘:app:checkDebugAarMetadata’

I already had the compileSdkVersion and targetSdkVersion on version number 30. I added to build.repositories jcenter() and to allprojects.repositories jcenter(), after that I build the react-native app and it works fine. My build.gradle // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { buildToolsVersion = “30.0.2” minSdkVersion … Read more

javac command line compile error: package javax.servlet does not exist

You need to add the path to Tomcat’s /lib/servlet-api.jar file to the compile time classpath. javac -cp .;/path/to/Tomcat/lib/servlet-api.jar com/example/MyServletClass.java The classpath is where Java needs to look for imported dependencies. It will otherwise default to the current folder which is included as . in the above example. The ; is the path separator for Windows; … Read more

Public operator new, private operator delete: getting C2248 “can not access private member” when using new

When you do new Foo() then two things happen: First operator new is invoked to allocate memory, then a constructor for Foo is called. If that constructor throws, since you cannot access the memory already allocated, the C++ runtime will take care of it by passing it to the appropriate operator delete. That’s why you … Read more

Trying to include a library, but keep getting ‘undefined reference to’ messages

The trick here is to put the library AFTER the module you are compiling. The problem is a reference thing. The linker resolves references in order, so when the library is BEFORE the module being compiled, the linker gets confused and does not think that any of the functions in the library are needed. By … Read more