The problem that Toast does not prompt in the first line of code in android

Today, I will continue to read Guo Lin Guo Shao's <<first line of code>, use Toast in the event in 2.2.4, follow Guo Shao's settings step by step, and click the button event at the end, without triggering the onclick event, that is, Toast hint! Why is this? Part of the code in my FirstActivity.java is as follows:

As soon as I click run it shows,


After careful analysis, is there something wrong with my operating system (Win2008R2) or a certain configuration? If there is a great god who has encountered this situation, please tell us these little whites, thank you!

My solution is:

When creating a new emulator, please select a Nexus4 with a lower version, and configure the others as usual, and finally solved it successfully!


 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326288553&siteId=291194637