When I render my scene, it renders the solid view shading instead rendered view shading.
How do I fix this?
Use OpenGL Render instead:
It renders what you see in 3D-Viewport.
Blender 2.80 beta doesn't bring this function back, it might become available soon.