Rendering Problems Exception raised during rendering: color and position arrays must be of equal length
Firstly disable Automatically pick best feature. (You can see on below image)
Then select non preview Api version for rendering
Thats all and worked for me :)
Also this answer given for fixing problems when using non updated Build Tools Version for rendering. Another way to fix problem :
Open SDK Manager
and update Build Tools
version to Preview Channel
if you want to use Preview
version of Build Tools
when rendering.
I solved it. The problem was caused by using a false gradient style file. Deleting the gradient file solved the problem for me.
I solved this issue by disabeling the preview on a preview version of Android. Like Android N.
This also helps