Try putting your Advil or other meds in an empty capsule. This way they won't dissolve in your stomach but will reach the small intestine where the med will be obsorbed.
My LLMD has me put all my meds in empty capsules and I don't have stomach problems. Even capsule forms of meds go into other capsules. It works for me.