You need to resole.

Its nearly impossible to glue a part that flexes constantly, and expect it to hold. Glue doesnt have elastic properties, so will just pull off as your foot flexes.