Example 1: Fragment and FrameLayout Step 1: create a new android project Step 2: File res/layout/activity_main.xml Step 3: File res/layout/landscape_fragment.xml Step 4: File res/layout/portrait_fragment.xml Step…
Example error: Solution: Change Java version: Example change environment variable JAVA_HOME Old value: E:\SETUP\System\jdk-15 New value: C:\Program Files\Java\jre1.8.0_231 Restart your machine. Done!