The invention relates to artificial feed for feeding fruit fly, which comprises, by weight, corn meal 25-35 parts, wheat bran 25-35 parts, beer yeast 5-10 parts, sugar 5-10 parts, food preservative 0.1-0.3 part, acidity conditioning agent 0.3-0.85 part and water 95-105 parts. The invention further relates to a method for feeding the fruit fly. The artificial feed for feeding the fruit fly and the method for feeding the fruit fly can be used for feeding various fruit flies in a mixing mode (or secretively breeding the fruit flies under the condition that the variety of the fruit flies is undefined) and improving the feeding efficiency. The factorized and scale feeding of the various fruit flies can be achieved by utilizing the artificial feed, and raw materials are easily obtained and are not limited by seasonality. The cost is low, the preparation is simple and convenient, biological indicators of spawn hatching rate, larva livability, pupa weight, pupation rate, emergence rate and spawn laying amount are high in level, and the yield and the quality of the fruit fly are improved.