I am trying the following example https://developers.arcgis.com/labs/pro/analysis-with-python/
But I get an error that "The name 'Geoprocessing' does not exist in the current context" and also "The name 'GPMessageBoxStyle' does not exist in the current context" .
I also noticed that a couple of my using are grayed out with the note "Using directives is unnecessary".
Anybody ran into this issue before?
I ran into this same problem. for anyone who needs it this is how I solved it.
This resolved all errors for me