How to fix ‘The package could not be installed. No valid plugins were found’ in WordPress

How to fix ‘The package could not be installed. No valid plugins were found’ in WordPress – when you see this error while installing plugin it means you are directly uploading downloaded zip.  which is not main plugin zip and main plugins zip folder is inside that downloaded zip.

First Extract the downloaded zip file and find main plugin zip file and upload it. The plugin will be installed successfully. Thanks