Expected top-level statement (e.g. "message") 解决方案

Make sure that you do not use a non-ASCII encoding with your text file. The protoc.exe compiler will complain with the following message:

    tutorial/addressbook.proto:1:1: Expected top-level statement (e.g. "message").
The best way to fix this is with Visual Studio. Open the proto file and select "File" -> "Save as...". From the save dialog click the down arrow next to the save button and select "Save with Encoding". Select the "US-ASCII" codepage (near the bottom) and click save.

你可能感兴趣的:(flash)