The role of asymptotic giant branch (AGB) stars in chemical enrichment is significant for producing 12,13C, 14N, F, 25,26Mg, 17O and slow neutron-capture process (s-process) elements. The contribution from super-AGB stars is negligible in classical, one-zone chemical evolution models, but the mass ranges can be constrained through the contribution from electron-capture supernovae and possibly hybrid C+O+Ne white dwarfs, if they explode as Type Iax supernovae. In addition to the recent s-process yields of AGB stars, we include various sites for rapid neutron-capture processes (r-processes) in our chemodynamical simulations of a Milky Way type galaxy. We find that neither electron-capture supernovae or neutrino-driven winds are able to adequately produce heavy neutron-capture elements such as Eu in quantities to match observations. Both neutron-star mergers (NSMs) and magneto-rotational supernovae (MRSNe) are able to produce these elements in sufficient quantities. Using the distribution in [Eu/(Fe, α)] – [Fe/H], we predict that NSMs alone are unable to explain the observed Eu abundances, but may be able to together with MRSNe. In order to discuss the role of long-lifetime sources such as NSMs and AGB stars at the early stages of galaxy formation, it is necessary to use a model that can treat inhomogeneous chemical enrichment, such as in our chemodynamical simulations. In our cosmological, chemodynamical simulations, we succeed in reproducing the observed N/O-O/H relations both for global properties of galaxies and for local inter-stellar medium within galaxies, without rotation of stars. We also predict the evolution of CNO abundances of disk galaxies, from which it will be possible to constrain the star formation histories.