I successfully solved this problem by :
1. Clicking on Start.
2. Search for MiKTeX Package Manager (Admin) [This step is very important]
3. Search for pgf package.
4. Right click and install that package.
Done. The error is now gone.
Search found 1 match
Search found 1 match • Page 1 of 1