# Unable to fix the figure attachment error [duplicate]

I am facing a problem in attaching a figure. I get the following error:

Latex error: Cannot determine size of graphic in fig.pdf

\begin{figure}
\centering
\includegraphics[width=0.8\textwidth,]{fig.pdf}
\caption{Coop. Network with Relays}
\end{figure}

-