When you create a menu, the menu (three points, 1) is displayed on the virtual device, but it may not appear on the An Zuojin machine.
(Fig. 1)
The reason is because the Android system now hides the title bar by default, so the menu is not displayed.
There are two ways to solve this problem:
Method One: Add the display title bar code after the OnCreate () function: Setcontentview (R.layout.xxx_layout);
If the problem is still not resolved, review your own activity class for inheritance issues, if the discovery class begins with this: public class XXX extends activity () {...}. The activity is inherited, and the appcompatactivity is inherited instead.
Public class extends appcompatactivity{@override ... }
Method Two: Add in the Strings.xml file of the Res.value file
1 <item name= "Android:windowactionbar" >true</item>23 <item Name = "Android:windownotitle" >false</item>
Create a menu problem in the Android Studio environment (title bar display problem)