We are getting below error while service module builds

For creating custom tables using the service builder and buildservice also success .

While build and deploy the module getting below exception in the XXXXXLocalServiceUtil class

com.liferay.portal.kernel.module.service does not exist

import com.liferay.portal.kernel.module.service.Snapshot;

Gradle 6.6.1 and 8.5 with some 7.Xx version

Java 11 and 17 we used ,

Which Liferay version are you getting this error on?

Same question as Pooja. That module was moved from osgi.util.service to portal-kernel in Sep 2023 https://github.com/liferay/liferay-portal/commit/5eeb81045e4c30d7f0b253fc3e282ec67a12c306