Trying to Make WIFI connection on android 4.1 jellybean
Your router may have a pairing button that you need to press. If it does, it must be pressed  the first time you attempt to make a connection. Be close to the router. Turn off Wi-Fi, and hit "on" again. Go to Settings &gt; Wireless networks &gt; Wi-Fi. 

My router is a Cisco Linksys X2000, and I had problems too.