Variable Width Profile Is Greyed Out In Illustrator

The Problem

If you’re experiencing this issue where the variable width profile is greyed out in illustrator like this:

 

The Solution

You just need to make sure that the “Align Stroke” setting is set like this:

Variable width profile is greyed out in illustrator solution