File->Project Structure-> 左侧一栏里选择“Modules”,然后窗口右侧选项卡里切换到“Dependencies”,点击绿色的“+”,选择“JARS and directories",添加所需jar包即可。