With the new privacy changes in effect with Android Q, it is now mandatory for any app using MediaProjection api to specify android:foregroundServiceType attribute
MediaProjection
Changing the following attributes
android:foregroundServiceType="mediaProjection" tools:targetApi="q"
in AndroidManifest.xml worked for me.
< service android:name="SERVICE_NAME" android:foregroundServiceType="mediaProjection" tools:targetApi="q" android:enabled="true" android:exported="false" />