Predators are dependent on the capture of prey to meet their energetic and nutritive requirements, imposing a regime of predation risk. Consequently, prey experience both consumptive and non-consumptive effects. Non-consumptive effects may manifest through altered growth and ontogenetic trajectories of prey species, a dynamic modulated by olfactory or other sensory cues from predators. Bactrocera dorsalis Hendel represents a great invasive threat to global horticulture. While earlier research has primarily centered on the consumptive interactions between B. dorsalis and its natural enemies, the potential consequences of non-consumptive interactions on the development of B. dorsalis have been overlooked. In this study, we investigated the impact of predation risk effects, induced by both visual exposure to the predatory mantis Hierodula patellifera Serville and its associated odor, on the life history traits of B. dorsalis. Female B. dorsalis demonstrated reduced development time in the presence of isolated H. patellifera or H. patellifera odor, yet evidenced significantly increased fecundity. Conversely, males displayed no significant change in development time. Additionally, neither female nor male body weight at death was significantly influenced by predation risk from isolated predators or predator odor. These results indicated adaptive developmental strategies of B. dorsalis when faced with risks from predators and highlight the important role of predator odor, which has the potential to lay the groundwork for improving biological control efforts and innovative approaches within pest control.