It seems that you will want to downgrade to the respective Xenial packages for that API library and uninstall all the respective ones of Bionic. Refer to this page and uninstall-install the ones that are necessary.
I'd be cautious if I were you because if the dependencies aren't met properly things will likely break or won't work.