sounds like you are reusing an old SDK
Are you using the B4A SDK Manager? Did you setup a new SDK for B4A?
You can find the Setup-Instructions here.
https://www.b4x.com/b4a.html
You also can watch this Video as it describes it clearly.
Start with a new Blank folder like you see in the Video.