Java – unable to parse import com google?

I used a tutorial on this page:

It told me to change the main activity. Except for this error, everything went well: "unable to parse import com. Google"

Highlighted are:

import com.google.android.c2dm.C2DMessaging;

What could be the problem? It should be my project name, not com Google? Because I have a java file that is web SMS. C2DMessaging.

Solution

Would you like to C2DM Add jar to the build path of the project?

First, C2DM Copy the jar to the Lib folder in the project (if not, create one)

1.) right click your item and select properties. 2.) Select Java build path and select the libraries tab. 3.) Click the add external jars... Button and select C2DM. From the Lib folder jar. 4.) click open and OK

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>