With the recent release of robots there has been confusion with how to build robots. You will need to follow these steps
1) Buy a mining robot from the store. You can buy up to 3 I think.
2) Go to missions and select a mission to do. Take out your mining robot when you see a rock and double tap it when it is next to the rock. It will auto mine the rock and pick up the mineral for you. (you take out a robot by going to the menu with friends list, facebook and all that jazz, then tap the robots tab)
3) You must finish the mission to keep any minerals your bot has mined. If you die/fail, you will lose your minerals from that mission so always clear out the NPC's before mining.
4) When the mission is over, head over to the robot shop again and take out your bots you used to mine. You then have to tap the transfer guy and he will put the minerals from your bots into your inventory.
5) Go back to the robots tab, and instead of picking a robot, go to the bottom right where it says build.
6) Here you can see what minerals and how many you need for the robot you want depending on your class. Once you have enough minerals you can build your bot.
Other stuff:
You can name your bots
Every time you use a bot, it looses "health" and will eventually break
You can drag your bots, or have them follow you
Some minerals you can only get by destroying space ships and power plants
If you have any further questions, leave them here. Happy mining/building!