'Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release

i am getting this issues after install JAVA 11 (LTS) and Visual studio 2022 Community Edition. and Andriod Studio. in my Brand new AMD PC (which has all the power to develop). But after intall all the required softwares. when i try to start the design (activity_main.xml) and try to preview the design. i am getting this error in the design windows.

Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. enter image description here



Solution 1:[1]

You should download JDK1.8.0_111 that will work

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ibrahim Al-Dekhail