You need to open your Android SDK Manager, which you can make from Android Studio ( Tools - Android - SDK Manager ) and install the corresponding version of the SDK, which in your case is 8 .
Once this is done, try importing the example again or, if it has already been imported, do a cleanup and rebuild ( Build-Clean Project .