Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6798671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:45:30+00:00 2026-05-26T18:45:30+00:00

I’m trying to compile and run the task-android-sample code from Google’s API website. I

  • 0

I’m trying to compile and run the task-android-sample code from Google’s API website. I couldn’t get it to work with Maven so I ended up downloading all the jar files. Below are the steps I did:

1) Import the downloaded task-android-sample project into Eclipse

2) Add google-api-java-client-1.4.1-beta.zip jar files to my project (Build path, add external jars)

3) Download Task API jar file and import to my project:
http://code.google.com/p/google-api-java-client/wiki/APIs#Tasks_API

4) Check off all the import jar files in the Order/Export section of Build Path

5) Clean Project

6) Run Project.

I get the following errors:
– ClientCredentials cannot be resolved into a variable
– The import com.google.api.services.samples.shared cannot be resolved.

I searched in the Google API website and couldn’t find where to download the file from. I did a Google search and couldn’t find a jar file that would contain the class. Can someone help me to solve this dependency issue?

UPDATE: 9/20/11 **
I followed the instructions specified here:
http://samples.google-api-java-client.googlecode.com/hg/tasks-android-sample/instructions.html

The “mvn sources:jar install” command does not give me any error, but when I run “mvn compile” I get the following errors:

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] <My_Path>/google-api-java-client.samples/tasks-android-sample/src/main/java/com/google/api/services/samples/tasks/android/TasksSample.java:    [221,53] package R does not exist
[ERROR] <My_Path>/google-api-java-client.samples/tasks-android-sample/src/main/java/com/google/api/services/samples/tasks/android/TasksSample.java: [225,20] package R does not exist
[INFO] 2 errors 

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.707s
[INFO] Finished at: Tue Sep 20 23:15:09 CDT 2011
[INFO] Final Memory: 9M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project tasks-android-sample: Compilation failure: Compilation failure:
[ERROR] <My_Path>/google-api-java-client.samples/tasks-android-sample/src/main/java/com/google/api/services/samples/tasks/android/TasksSample.java:[221,53] package R does not exist
[ERROR] <My_Path>/google-api-java-client.samples/tasks-android-sample/src/main/java/com/google/api/services/samples/tasks/android/TasksSample.java: [225,20] package R does not exist

I already verify my maven installation as per Apache’s instructions, so not sure why I can’t still compile this properly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:45:30+00:00Added an answer on May 26, 2026 at 6:45 pm

    This is now fixed. Please try it again. Thanks for reporting the problem. Instructions are here:

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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
I am currently running into a problem where an element is coming back from
I am trying to loop through a bunch of documents I have to put
I have a bunch of posts stored in text files formatted in yaml/textile (from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.