An electronic device, wherein the electronic device comprises: a middle frame, which is provided with a function button fixedly connected to the middle frame, wherein a fingerprint hole is arranged on a side surface of the middle frame; a fingerprint recognition apparatus passing through the fingerprint hole, wherein the fingerprint recognition apparatus comprises an accommodating structure, and is in contact with the function button; and a stopping assembly, which is arranged on a side of the fingerprint hole close to the function button, and is fixedly connected to the middle frame, wherein the stopping assembly comprises a retaining wall structure, and a partial area (141-A, 141-B) of the retaining wall structure is inserted into the accommodating structure; in a first direction, a size of the partial area (141-A, 141-B) is smaller than a size of a movement space, and the movement space comprises space of the accommodating structure on the side of the fingerprint hole close to the function button; in a second direction of a first plane and/or a third direction of the first plane, a size of the retaining wall structure is greater than a size of the fingerprint hole; the first direction is perpendicular to the side surface of the middle frame, the first plane is parallel to the side surface of the middle frame, the second direction is a thickness direction of the middle frame, and the third direction is perpendicular to the second direction; the fingerprint recognition apparatus comprises a fingerprint recognition assembly (131, 132), a flexible circuit board, and a reinforcement component; the flexible circuit board is arranged between the fingerprint recognition assembly (131, 132) and the reinforcement component; in the first direction, the size of the reinforcement component is smaller than the size of the fingerprint recognition assembly (131, 132), wherein the fingerprint recognition assembly (131, 132) is adapted to be assembled from the outside of the middle frame to the inside of the middle frame. characterized in that the flexible circuit board comprises a first part and a second part; the first part is partially arranged between the fingerprint recognition assembly (131, 132) and the reinforcement component; the first part comprises an extension area (1331-A) stretching out of a first end (132-B) of the fingerprint recognition assembly (131, 132); and the second part extends from an end of the extension area (1331-A) to the inside of the middle frame, and is fixedly connected to the middle frame. a middle frame, which is provided with a function button fixedly connected to the middle frame, wherein a fingerprint hole is arranged on a side surface of the middle frame; a fingerprint recognition apparatus passing through the fingerprint hole, wherein the fingerprint recognition apparatus comprises an accommodating structure, and is in contact with the function button; and a stopping assembly, which is arranged on a side of the fingerprint hole close to the function button, and is fixedly connected to the middle frame, wherein the stopping assembly comprises a retaining wall structure, and a partial area (141-A, 141-B) of the retaining wall structure is inserted into the accommodating structure; in a first direction, a size of the partial area (141-A, 141-B) is smaller than a size of a movement space, and the movement space comprises space of the accommodating structure on the side of the fingerprint hole close to the function button; in a second direction of a first plane and/or a third direction of the first plane, a size of the retaining wall structure is greater than a size of the fingerprint hole; the first direction is perpendicular to the side surface of the middle frame, the first plane is parallel to the side surface of the middle frame, the second direction is a thickness direction of the middle frame, and the third direction is perpendicular to the second direction; the fingerprint recognition apparatus comprises a fingerprint recognition assembly (131, 132), a flexible circuit board, and a reinforcement component; the flexible circuit board is arranged between the fingerprint recognition assembly (131, 132) and the reinforcement component; in the first direction, the size of the reinforcement component is smaller than the size of the fingerprint recognition assembly (131, 132), wherein the fingerprint recognition assembly (131, 132) is adapted to be assembled from the outside of the middle frame to the inside of the middle frame. characterized in that the flexible circuit board comprises a first part and a second part; the first part is partially arranged between the fingerprint recognition assembly (131, 132) and the reinforcement component; the first part comprises an extension area (1331-A) stretching out of a first end (132-B) of the fingerprint recognition assembly (131, 132); and the second part extends from an end of the extension area (1331-A) to the inside of the middle frame, and is fixedly connected to the middle frame.