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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:09:16+00:00 2026-06-04T13:09:16+00:00

I have built the Android source for the emulator. I read in the Android

  • 0

I have built the Android source for the emulator. I read in the Android Source documentation that the path to ’emulator’ is added autmatically during a successful build. However I have two questions about this:

  1. If I open a new shell or close my existing shell, ’emulator’ is no longer found. Surely I don’t have to build each time I want to run the emulator?

  2. If the emulator requires an AVD how do I create and manage these given there is no Android SDK on my machine?

Thanks,
Jack

SOLUTION to part 2.

I needed to create an environment variable called ANDROID_PRODUCT_OUT. From the the following command:

emulator -help-build-images

I read…

The emulator detects that you are working from the Android build
system by looking at the ANDROID_PRODUCT_OUT variable in your
environment.

If it is defined, it should point to the product-specific directory
that contains the generated system images.

I then did a search for ‘system.ing’ in my ‘out’ directory. since I am building for the emulator the image was in:

out/target/product/generic

I added the following line to my .bashrc file:

export ANDROID_PRODUCT_OUT=/home/jack.wootton/code/out/target/product/generic

I was then able to run the emulator from:

/home/jack.wootton/code/out/host/linux-x86/bin

SOLUTION to part 1.

I don’t know about Android Virtual Devices, so this question still stands – however I did not need to provide one to run the emulator after doing a successful build and setting the ANDROID_PRODUCT_OUT environment variable.

Update to solutions

Apparently variables such as ANDROID_PRODUCT_OUT should be automatically created during a build and using the envSetup.sh script. I guess something has gone wrong with my environment setup for this not to happen.

  • 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-04T13:09:17+00:00Added an answer on June 4, 2026 at 1:09 pm

    You shared that:

    Apparently variables such as ANDROID_PRODUCT_OUT should be automatically created during a build and using the envSetup.sh script. I guess something has gone wrong with my environment setup for this not to happen.

    I ALSO ATTEMPTED to get this to work and LEARNED that:

    1. lunch full-eng sets up all the appropriate env
    2. to check it, simply run:
      env | grep ANDROID
      and you will see all the appropriate env variables setup.
      These are local to the current shell only!
    3. emulator then does what it should.

    When I came back to the shell later, I simply ran lunch full-eng again to restore my environment.
    I hope this helps others as well!

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

Sidebar

Related Questions

I have a simple Android application that uses a JAR I have built. When
I want to build an notepad-style application on android that will have syntax highlighting.
I have built OpenSSL for Android(using ndk-build) and have linked it to my program.
A lot of open source libraries that aid in Android application development have sprung
I am using ANT to compile an Android app that I have built. It
I have Android pet-project DroidIn which utilizes HttpClient 4 (built into Android) to do
We have an Android app built with Mono for Android, and now we have
i have an android project which has a lot of classes I've built. i
I have build my very first application to Android and I want now to
I am starting to build my first Android app. I have reached the point

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.