First of all, $n$ is even (find that out by trying to see what kind of remainders you can possibly get when dividing everything by 4). So $n=2m$, $m\in N$.
$ x^2 + 8 = 3^{2m} \Rightarrow x^2 - 1 = 3^{2m} - 9 \Rightarrow (x+1)(x-1) = (3^m + 3)(3^m - 3) \Rightarrow x$ is odd.
That's all I've tried so far. I'd like to get some help. Thanks.
Now that you know $n$ is even, write $8=(3^{n/2}-x)(3^{n/2}+x)$. What are the possible factors of $8$? Which cases do we have, then?