That question sounds contradictory. At least in gases, it affects a lot. And is not the only factor, temperature is quite important too. Now if the substance is a solid/liquid in a liquid, it shouldnt affect unless the gas in solution interacts with the dissolved solid, or it interacts with the solvent in a way that change some property like polarity.
Temperature affects the solubility of both solids and gases, but pressure only affects the solubility of gases. Pressure does not have any effect on solubility of solids in liquids because solids and liquids are highly incompressible. Solubility is affected by 4 factors – temperature, pressure, polarity, and molecular size. Solubility increases with temperature for most solids dissolved in liquid water. This is because higher temperatures increase the vibration or kinetic energy of the solute molecules. Solids and liquids show almost no change in solubility with changes in pressure. But gases are very dependent on the pressure of the system. Gases dissolve in liquids to form solutions. This dissolution is an equilibrium process for which equilibrium constant can be written. The solubility of a substance depends on the physical and chemical properties of that substance. In addition to this, there are a few conditions which can manipulate it. Temperature, pressure and the type of bond and forces between the particles are few among them. The factors that affect the solubility of the substance are temperature, the nature of the solute or solvent, and pressure. Rises in temperature improve the solubility of solids in water, but reduce the solubility of gases in water because temperature increases produce an increase in the number of stimulated atoms or molecules of gases. Changes in pressure have essentially no effect on the solubility of solids and liquids. The size of solute particles, stirring, and temperature, are the three factors that affect the solubility of a solid solute in a solvent. External pressure has very little effect on the solubility of liquids and solids. In contrast, the solubility of gases increases as the partial pressure of the gas above a solution increases. As the partial pressure increases above the liquid, the solubility of the gases in the solution increases and when the partial pressure of the gas above liquid decreases the solubility of the gas in the solution decreases. External pressure has very little effect on the solubility of liquids and solids. In contrast, the solubility of gases increases as the partial pressure of the gas above a solution increases.