Heat transfer accompanying entropy generation for the evolving mini and microbubbles in solution is discussed based on the explicit solutions for the hydrodynamic equations related to the bubble motion. Even though the pressure difference between the gas inside the bubble and liquid outside the bubble is a major driving force for bubble evolution, the heat transfer by conduction at the bubble-liquid interface affects the delicate evolution of the bubble, especially for sonoluminescing the gas bubble in sulfuric acid solution. On the other hand, our explicit solutions for the continuity, Euler equation, and Newtonian gravitational equation reveal that supernovae evolve by the gravitational force radiating heat in space during the expanding or collapsing phase. In this article, how the entropy generation due to heat transfer affects the bubble motion delicately and how heat transfer is generated by gravitational energy and evolving speed for the supernovae will be discussed. The heat transfer experienced by the bubble and supernovae during their evolution produces a positive entropy generation rate.