Try making a fragile frame:
\begin{frame}[fragile]
The fragile
option didn't work for me, but this did:
\begin{frame}[containsverbatim]
listings provides frame functions:
\begin{lstlisting}[frame=single]
Sample Code
\end{lstlisting}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With