Here is my MWE:
\documentclass[oneside,mtp]{iiitg}
% To add a bookmark in the pdf you can use \pdfbookmark. You can look up its usage
% in the hyperref package documentation
\usepackage[bookmarksnumbered,pdfpagelabels=true,plainpages=false,colorlinks=true,
linkcolor=black,citecolor=black,urlcolor=black]{hyperref}
\usepackage[hyphens]{url}
\urlstyle{rm}
which gives me the following error on compiling
Option clash for package url. \urlstyle
What is this error and why is it occurring? If you want to see full template and other files you can see it here.
\usepackage[hyphens]{url}, run\usepackage{xurl}. Oh, and thexurl(and theurl) package is best loaded before, not after,hyperref. – Mico May 17 '20 at 00:50