Changes in gastric pH can impact the dissolution and absorption of compounds presenting pH-dependent solubility. We assessed, in dogs, the effects of gastric pH-modifying agents on the oral absorption of two weakly basic anticancer drugs, dasatinib and GDC-0941. We also tested whether drug-induced hypochlorhydria could be temporarily mitigated using betaine HCl. Pretreatments with pentagastrin, famotidine, betaine HCl, or combinations of famotidine and betaine HCl were administered orally to dogs prior to drug dosing. The gastric pH was measured under each condition for up to 7 h, and the exposure of the compounds tested was calculated. The average gastric pH in fasted dogs ranged from 1.45 to 3.03. Pentagastrin or betaine HCl treatments lowered the pH and reduced its variability between dogs compared to control animals. In contrast, famotidine treatment maintained gastric pH at values close to 7 for up to 5 h, while betaine HCl transiently reduced the pH to approximately 2 in the famotidine-treated dogs. Famotidine pretreatment lowered GDC-0941 exposure by 5-fold, and decreased dasatinib measurable concentrations 30-fold, compared to the pentagastrin-treated dogs. Betaine HCl restored GDC-0941 AUC in famotidine-treated dogs to levels achieved in control animals, and increased dasatinib AUC to 1.5-fold that measured in control dogs. The results confirmed the negative impact of acid-reducing agents on the absorption of weakly basic drugs. They also suggested that betaine HCl coadministration may be a viable strategy in humans treated with acid-reducing agents in order to temporarily reduce gastric pH and restore drug exposure.