CHJani / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

The import com.google.api.services cannot be resolved #335

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client (e.g. 1.5.0-beta)?

Java environment (e.g. Java 6, Android 2.3, App Engine)?

Describe the problem.
import com.google.api.services.calendar.CalendarClient;
import com.google.api.services.calendar.CalendarRequestInitializer;
import com.google.api.services.calendar.CalendarUrl;
import com.google.api.services.calendar.model.CalendarEntry;
import com.google.api.services.calendar.model.CalendarFeed;

The import com.google.api.services cannot be resolved.

Original issue reported on code.google.com by lone2...@gmail.com on 31 Oct 2011 at 4:47

GoogleCodeExporter commented 9 years ago
Please read the setup instructions here:

http://samples.google-api-java-client.googlecode.com/hg/calendar-android-sample/
instructions.html?r=default

Original comment by yan...@google.com on 11 Nov 2011 at 10:05

GoogleCodeExporter commented 9 years ago
Hi,

I am using Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 2

I have already ADT installed and I can run android applications.
To use google-api-java-client for calendar I downloaded the jars from here: 
http://code.google.com/p/google-api-java-client/wiki/Setup#Generated_Libraries_f
or_New_Google_APIs

I could not understand why to use maven and mercurial.

I copied the CalenderSample from here: 
http://code.google.com/p/google-api-java-client/source/browse/calendar-android-s
ample/src/main/java/com/google/api/client/sample/calendar/android/CalendarSample
.java?repo=samples

But com.google.api.services package cannot be resolved. Why is not sufficent to 
use specified jars and the source?

Thanks in advance.

Onur 

Original comment by man.of.f...@gmail.com on 17 Nov 2011 at 4:01