Chronic stress may induce learning and memory deficits that are associated with a depression-like state in Drosophila melanogaster. The molecular and neural mechanisms underlying the etiology of chronic stress-induced learning deficit (CSLD) remain elusive. Here, we show that the autophagy-lysosomal pathway, a conserved cellular signaling mechanism, is associated with chronic stress in Drosophila, as indicated by time-series transcriptome profiling. Our findings demonstrate that chronic stress induces the disruption of autophagic flux, and chronic disruption of autophagic flux could lead to a learning deficit. Remarkably, preventing the disruption of autophagic flux by up-regulating the basal autophagy level is sufficient to protect against CSLD. Consistent with the essential role of the dopaminergic system in modulating susceptibility to CSLD, dopamine neuronal activity is also indispensable for chronic stress to induce the disruption of autophagic flux. By screening knockout mutants, we found that neuropeptide F, the Drosophila homolog of neuropeptide Y, is necessary for normal autophagic flux and promotes resilience to CSLD. Moreover, neuropeptide F signaling during chronic stress treatment promotes resilience to CSLD by preventing the disruption of autophagic flux. Importantly, neuropeptide F receptor activity in dopamine neurons also promotes resilience to CSLD. Together, our data elucidate a mechanism by which stress-induced excessive dopaminergic activity precipitates the disruption of autophagic flux, and chronic disruption of autophagic flux leads to CSLD, while inhibitory neuropeptide F signaling to dopamine neurons promotes resilience to CSLD by preventing the disruption of autophagic flux.