The AS project has an error in the title. Solution:
These two are selected as 1.8.
Then AS will be automatically added under build.gradle of app, in android{}
At the same time, the following parts in the app.iml file will be modified, and Language_level will be changed to JDK_1_8