The interaction between a screw dislocation and an oblique edge crack in a semi-infinite piezoelectric medium under remote anti-plane mechanical and in-plane electrical loadings is studied in this article. The screw dislocation suffers a finite discontinuity in the displacement and electric potential across the slip plane. The dislocation also has a line force and a line charge along its core. In the framework of linear piezoelectricity theory, the analytical solutions are derived from the complex variable and Schwarz–Christoffel transformation. Furthermore, the electric field, stress field, generalized stress intensity factor, image force and crack extension force are formulated exactly. Numerical calculations are then given graphically for studying the effects of crack length, crack angle and load position on these electric mechanical parameters. Besides, the dislocation solutions proposed here can be served as Green’s functions for the analyses of corresponding piezoelectric cracking or distributed loading problems.