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 9088643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:56:58+00:00 2026-06-16T21:56:58+00:00

I’m trying to include the android-support-v4.jar into my command line android project. My import

  • 0

I’m trying to include the android-support-v4.jar into my command line android project. My import statement is simply:

import android.support.v4.NavUtils;

I’ve copied the jar from $ANDROID_HOME/extras/android/support/v4/android-support-v4.jar into my project’s libs/ folder but I still receive the following error upon building with ant:

package android.support.v4 does not exist

My understanding is that any jars placed in the libs/ folder are automatically included in the projects classpath.

As requested, the output of ls -l on the root project folder is

-rw-r--r--   1 Nick  staff  1192  4 Jan 15:08 AndroidManifest.xml
-rw-r--r--   1 Nick  staff   696  4 Jan 12:12 ant.properties
drwxr-xr-x  17 Nick  staff   578  4 Jan 15:10 bin
-rw-r--r--   1 Nick  staff  3922  3 Jan 14:08 build.xml
drwxr-xr-x   4 Nick  staff   136  3 Jan 15:11 gen
drwxr-xr-x   3 Nick  staff   102  4 Jan 15:18 libs
-rw-r--r--   1 Nick  staff   441  3 Jan 14:08 local.properties
-rw-r--r--   1 Nick  staff   781  3 Jan 14:08 proguard-project.txt
-rw-r--r--   1 Nick  staff   563  3 Jan 14:08 project.properties
drwxr-xr-x   8 Nick  staff   272  3 Jan 14:08 res
drwxr-xr-x   3 Nick  staff   102  3 Jan 14:08 src

and the entire output from ant debug is

    Buildfile: /Users/Nick/DEVELOPMENT/PROJECTS/MyFirstApp/build.xml

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 21.0.1
 [checkenv] Installed at /Users/Nick/Development/SDKS/android-sdk-macosx

-setup:
     [echo] Project Name: MyFirstApp
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-build-setup:
     [echo] Resolving Build Target for MyFirstApp...
[gettarget] Project Target:   Android 4.2
[gettarget] API level:        17
     [echo] ----------
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Resolving Dependencies for MyFirstApp...
[dependency] Library dependencies:
[dependency] No Libraries
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-pre-build:

-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
     [echo] ----------
     [echo] Handling Resources...
     [aapt] No changed resources. R.java and Manifest.java untouched.
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile:
    [javac] Compiling 1 source file to /Users/Nick/DEVELOPMENT/PROJECTS/MyFirstApp/bin/classes
    [javac] /Users/Nick/DEVELOPMENT/PROJECTS/MyFirstApp/src/com/example/myfirstapp/DisplayMessageActivity.java:9: package android.support.v4 does not exist
    [javac] import android.support.v4.NavUtils;
    [javac]                          ^
    [javac] /Users/Nick/DEVELOPMENT/PROJECTS/MyFirstApp/src/com/example/myfirstapp/DisplayMessageActivity.java:36: cannot find symbol
    [javac] symbol  : variable NavUtils
    [javac] location: class com.example.myfirstapp.DisplayMessageActivity
    [javac]                 NavUtils.navigateUpFromSameTask(this);
    [javac]                 ^
    [javac] 2 errors
  • 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-16T21:56:59+00:00Added an answer on June 16, 2026 at 9:56 pm

    Your import statement is incorrect, it should be:

    import  android.support.v4.app.NavUtils;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to create an if statement in PHP that prevents a single post
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
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
this is what i have right now Drawing an RSS feed into the php,
I am trying to render a haml file in a javascript response like so:
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

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.