The present invention provides a method for coating an electrode material with a solid electrolyte, an obtained coating material, an electrode prepared by using the coating material, and an all-solid-state battery obtained by using the electrode. The solid electrolyte material mainly aims at halide electrolyte, and comprises LiaMXb, M is one or more of Al, Ga, In, Sc, Y, La, Ho, Sc and the like, Xis one or more of F, Cl and Br, a is more than or equal to 0 and less than or equal to 10, b is more than or equal to 1 and less than or equal to 13, and the X is represented as Li3InCl6, Li3YCl6, Li3YBr6, Li3HoCl6, Li3ScCl6 and the like, and can also be a mixture for coating a solid electrolyte and a conductive agent. According to the invention, the contact between the electrolyte and the electrode material can be significantly improved, the porosity of the pole piece is reduced, the ionic conductivity of the solid electrolyte is not changed after an alkane solvent treatment process, an all-solid-state battery assembled by the electrode material containing the coating layer is simple in process, and the battery can exert high capacity and good rate capability and has a commercial prospect.