JIT compilation is disabled for non-Legacy projects. Uipath Studio

I encountered the same problem as you. I still reported an error after trying to upgrade <UiPath.System.Activities>. Later, I found that I was dealing with the error of excel, so I upgraded the corresponding excel activity package: <UiPath.Excel.Activities>, and then ran it again without any problem. So my understanding is: which activity package reports an error, which activity package can be upgraded