there will be no field inside a closed cavity!The charge densities lies on the surfaces on every layer and have the same sign(Why?).The net flux through this cavity should be zero.Its on you what you want to measure with the Gaussian theorem.For example,if you wanted to measure the field contribution of a charge density on the surface where the electric field pointed radial outwards in all direction then the E-field decreases with increasing distance.So,find a way in your integral representation where this facts pop out.
One remark to the Gaussian theorem: When you measure with Gaussian theorem you create imaginary ,closed ,oriented Gaussian surfaces layers to measure the net flux which goes through a surface .
https://www.feynmanlectures.caltech.edu/II_05.html