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

  • SEARCH
  • Home
  • 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 8065295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:37:20+00:00 2026-06-05T11:37:20+00:00

I was trying to do a simple app using the Google Tasks API. Something

  • 0

I was trying to do a simple app using the Google Tasks API. Something simple it’s turning into a nightmare. Maybe it’s something simple, probably it is, but I can’t figure it out.

The problem: I was following the example of TasksSample.java from Google but I can’t compile even after importing the libraries and dependencies required. I’m using Google API Java Client version 1.5.0.

The problem it’s when I access the GoogleAccessProtectedResource class. The import is:

import com.google.api.client.googleapis.auth.oauth2.draft10.GoogleAccessProtectedResource;

I always, and I mean always, no matter what code I have get the following error:

09-26 03:14:38.372: ERROR/dalvikvm(18731): Could not find class ‘com.google.api.client.googleapis.auth.oauth2.draft10.GoogleAccessProtectedResource’, referenced from method com.greven.test.google.tasks.GoogleTasksTake100Activity.
09-26 03:14:38.402: ERROR/AndroidRuntime(18731): FATAL EXCEPTION: main
09-26 03:14:38.402: ERROR/AndroidRuntime(18731): java.lang.NoClassDefFoundError: com.google.api.client.googleapis.auth.oauth2.draft10.GoogleAccessProtectedResource

I really can’t see where the problem is. I imported all the needed .jars… I guess

As you can see in this picture the class is obviously imported:

ScreenShot

So what other options do I have to fix this? Use Maven? I’m clueless now. I never thought I would have a problem like this. Oh I also tested on different computers, other Google java api client (version 1.4) and same thing happened. Thanks in advance.

  • 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-06-05T11:37:21+00:00Added an answer on June 5, 2026 at 11:37 am

    It seems as per your screenshot that your imported jar is imported in Eclipse, however for your Android application to work you need these jars to be dropped into a specific folder so that it is added to your APK and so the emulator and the Android devices find it.

    It seems you should drop these jars in a folder named /libs at the root of your project. See this SO question: How can I use external JARs in an Android project?

    The Article you are referring too uses the /assets folder but this might have changed a few Android versions ago.

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

Sidebar

Related Questions

Im trying to create a simple pan and zoom app using silverlight 4, but
I am trying to make a simple application using Google App Engine. Below is
I am trying to run nosetest using tipfy and google app engine but I
I am trying to build a simple todo list using google app engine in
I am trying to build a simple app using google app engine, with java
I'm using Spring 3, and trying to set up a simple web-app using annotations
I am trying to execute simple system command via my servlet on google app
I'm using the Zend_Gdata_Photos PHP client to access the Google Picasa API, trying to
I am trying to create a simple web app using Python on GAE. The
Simple problem, actually. I am trying to evaluate the possibilities of Google Apps, using

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.