'How I can resolve "This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered"?

I am getting this error "This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times."

My app still working but this error is annoying.

Can anyone help?



Sources

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

Source: Stack Overflow

Solution Source