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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:42:10+00:00 2026-05-27T05:42:10+00:00

I have a kind of strange issue. In my bash script or Makefile, using

  • 0

I have a kind of strange issue. In my bash script or Makefile, using aapt with absolute path does not work but if I am in the local directory it does.

If I do the following, it does not work:

aapt add $OUT/device.jar $OUT/classes.dex

The command does run and print this output:

 '/homes/rsevile/CS307/bin/Device/classes.dex'...

But when trying to load the jar, the class that I am trying to load end up being not found.

The following does work though:

cd $OUT
aapt add device.jar classes.dex

Printing:

 'classes.dex'...

This is the whole code being executed in the script (which works):

javac -d $(OUT)/classes -classpath ./layoutlib.jar src/com/device/client/*.java
jar cf $(OUT)/device.jar $(OUT)/classes $(OUT)/layoutlib
dx --dex --no-strict --output=$OUT/classes.dex $OUT/device.jar 
cd $OUT
aapt add device.jar classes.dex
cd $ROOT
adb push $OUT/device.jar $ANDROID_OUT_DIR

I am confused why my class ends up being not found when using an absolute path with aapt.

Could anyone please explain to me why it is not working and how I could fix it to use a proper absolute path please?

Thank you.

  • 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-27T05:42:10+00:00Added an answer on May 27, 2026 at 5:42 am

    I realized that aapt actually keeps the absolute path, there is no way around it.

    I fixed the problem by reusing jar and using the -C option that lets me specify a directory.

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

Sidebar

Related Questions

Ok so this is kind of a strange issue, but I have got two
Kind of a strange question, but here is my scenario: I have accidentally added
I have encountered strange issue with lists in F#. I am using XamlXmlReader to
Okay, so this might be kind of strange but here's the question: I have
I have a kind of strange thing that I really nead for my text
I want to have some kind of bounce effect in my animation plugin but
I know questions of this kind have been asked before, but my situation differs
Very strange issue... I have something like this in my Controller: public ActionResult Initialize(IEnumerable<MyModel>
This situation might seem strange but this is what i have to do: Situation,
I have a strange issue and possibly a bug. My NSLog statements have stopped

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.