An antenna configuration method, comprising: determining a communication status of each of a plurality of communications modules in a terminal device; determining an antenna use priority of each communications module based on the communication status of the communications module and a preset correspondence, wherein the preset correspondence comprises a correspondence between the communication status and the antenna use priority; determining, based on the antenna use priority of each communications module, a maximum quantity of antennas supported by the communications module, and an antenna quantity allocation principle for the communications module, a quantity of antennas allocated to the communications module; and configuring an antenna for each communications module based on the quantity of antennas allocated to the communications module; characterized in that the antenna quantity allocation principle is: determining, based on the antenna use priority of each communications module, a minimum quantity of antennas allocated to the communications module; determining, based on an even allocation manner and a quantity of remaining antennas, a quantity of antennas allocated to each communications module in a first antenna use priority set; and when the quantity of antennas allocated to each communications module in the first antenna use priority set is a maximum quantity of antennas supported by the communications module in the first antenna use priority set, determining, based on the even allocation manner and a quantity of remaining antennas, a quantity of antennas allocated to each communications module in a second antenna use priority set, wherein communications modules in the first antenna priority set have a same antenna priority, communications modules in the second antenna priority set have a same priority, and the priority of each communications module in the first antenna priority set is higher than the priority of each communications module in the second antenna priority set. determining a communication status of each of a plurality of communications modules in a terminal device; determining an antenna use priority of each communications module based on the communication status of the communications module and a preset correspondence, wherein the preset correspondence comprises a correspondence between the communication status and the antenna use priority; determining, based on the antenna use priority of each communications module, a maximum quantity of antennas supported by the communications module, and an antenna quantity allocation principle for the communications module, a quantity of antennas allocated to the communications module; and configuring an antenna for each communications module based on the quantity of antennas allocated to the communications module; characterized in that the antenna quantity allocation principle is: determining, based on the antenna use priority of each communications module, a minimum quantity of antennas allocated to the communications module; determining, based on an even allocation manner and a quantity of remaining antennas, a quantity of antennas allocated to each communications module in a first antenna use priority set; and when the quantity of antennas allocated to each communications module in the first antenna use priority set is a maximum quantity of antennas supported by the communications module in the first antenna use priority set, determining, based on the even allocation manner and a quantity of remaining antennas, a quantity of antennas allocated to each communications module in a second antenna use priority set, wherein communications modules in the first antenna priority set have a same antenna priority, communications modules in the second antenna priority set have a same priority, and the priority of each communications module in the first antenna priority set is higher than the priority of each communications module in the second antenna priority set. determining, based on the antenna use priority of each communications module, a minimum quantity of antennas allocated to the communications module; determining, based on an even allocation manner and a quantity of remaining antennas, a quantity of antennas allocated to each communications module in a first antenna use priority set; and when the quantity of antennas allocated to each communications module in the first antenna use priority set is a maximum quantity of antennas supported by the communications module in the first antenna use priority set, determining, based on the even allocation manner and a quantity of remaining antennas, a quantity of antennas allocated to each communications module in a second antenna use priority set, wherein communications modules in the first antenna priority set have a same antenna priority, communications modules in the second antenna priority set have a same priority, and the priority of each communications module in the first antenna priority set is higher than the priority of each communications module in the second antenna priority set.