A communication method, applied to a first terminal device and comprising: sending, by the first terminal device to a network device, information indicating that the first terminal device supports a first-standard vehicle-to-everything,V2X, service and information indicating that the first terminal device supports a second-standard V2X service, wherein the first-standard V2X service comprises a long term evolution, LTE, V2X service, and the second-standard V2X service comprises a new radio, NR, V2X service; receiving, by the first terminal device, a first-standard V2X sidelink configuration and/or a second-standard V2X sidelink configuration from the network device based on the information indicating that the first terminal device supports the first-standard V2X service and the information indicating that the first terminal device supports the second-standard V2X service; obtaining, by the first terminal device based on the first-standard V2X sidelink configuration and/or the second-standard V2X sidelink configuration, a V2X sidelink resource used for data transmission; and communicating, by the first terminal device, with a second terminal device on the V2X sidelink resource, wherein the obtaining a V2X sidelink resource used for data transmission comprises: after receiving the first-standard V2X sidelink configuration and/or the second-standard V2X sidelink configuration from the network device, sending, by the first terminal device, a second message to the network device to request a V2X sidelink resource for sending data, wherein the message carries at least one piece of information used to indicate a network standard, wherein the network standard comprises the first-standard V2X service and/or the second-standard V2X service; and receiving, by the first terminal device, the V2X sidelink resource sent by the network device based on the network standard indicated in the second message. sending, by the first terminal device to a network device, information indicating that the first terminal device supports a first-standard vehicle-to-everything,V2X, service and information indicating that the first terminal device supports a second-standard V2X service, wherein the first-standard V2X service comprises a long term evolution, LTE, V2X service, and the second-standard V2X service comprises a new radio, NR, V2X service; receiving, by the first terminal device, a first-standard V2X sidelink configuration and/or a second-standard V2X sidelink configuration from the network device based on the information indicating that the first terminal device supports the first-standard V2X service and the information indicating that the first terminal device supports the second-standard V2X service; obtaining, by the first terminal device based on the first-standard V2X sidelink configuration and/or the second-standard V2X sidelink configuration, a V2X sidelink resource used for data transmission; and communicating, by the first terminal device, with a second terminal device on the V2X sidelink resource, wherein the obtaining a V2X sidelink resource used for data transmission comprises: after receiving the first-standard V2X sidelink configuration and/or the second-standard V2X sidelink configuration from the network device, sending, by the first terminal device, a second message to the network device to request a V2X sidelink resource for sending data, wherein the message carries at least one piece of information used to indicate a network standard, wherein the network standard comprises the first-standard V2X service and/or the second-standard V2X service; and receiving, by the first terminal device, the V2X sidelink resource sent by the network device based on the network standard indicated in the second message. after receiving the first-standard V2X sidelink configuration and/or the second-standard V2X sidelink configuration from the network device, sending, by the first terminal device, a second message to the network device to request a V2X sidelink resource for sending data, wherein the message carries at least one piece of information used to indicate a network standard, wherein the network standard comprises the first-standard V2X service and/or the second-standard V2X service; and receiving, by the first terminal device, the V2X sidelink resource sent by the network device based on the network standard indicated in the second message.