'SNPE Android App Build Error. "invalid content"

Whenever I try building any SNPE Android Project(from Github). I get this error.

"cvc-complex-type.2.4.a: invalid content was found starting with element 'base-extension'. one of '{layoutlib}' is expected."

My OS: Windows 10

ANDROID STUIO DETAILS

Android Studio Bumblebee | 2021.1.1 Patch 2 Build #AI-211.7628.21.2111.8193401, built on February 17, 2022 Runtime version: 11.0.11+9-b60-7590822 amd64 VM: OpenJDK 64-Bit Server VM by Oracle Corporation Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 12 Registry: external.system.auto.import.disabled=true Non-Bundled Plugins: org.intellij.plugins.markdown (211.7142.37)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source