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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:12:07+00:00 2026-06-07T09:12:07+00:00

I have a JAR library which includes some non source code files in a

  • 0

I have a JAR library which includes some non source code files in a couple different /src packages (JSON files in this case)
When I add that JAR as a dependency on one of my Android projects and build the apk file, those JSON files are not in the apk or the classes.dex (I ran dex2jar and saw that the files are missing)

How can I tell dex to also include those json files in the output?

  • 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-07T09:12:10+00:00Added an answer on June 7, 2026 at 9:12 am

    AFAIK, a dex file is only designed to hold .class files (and strings). Here is an (old) description of the dex file format. (I was unable to find one on google’s site) http://retrodev.com/android/dexformat.html

    When google parses your dependency jars at compile time it only pays attention to .class files, since that is what dependencies are for – classes you want to use in your code which aren’t defined in your code. I’m not sure it even pays attention to anything else you might have in those jars.

    The question you want to ask is not how to tell dex to include the json files (it can’t) but how to get those json files into your apk. Unfortunately, if they are stored in a jar I don’t know of a way to do this short of setting up something in ant to manually unpack the jar and move the files yourself. Compile-time jar dependencies are not designed to simply copy files into your project package.

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

Sidebar

Related Questions

I have a Netbeans project with a library defined which includes several JARs. These
I have a java web application. Here I have some javascript files which I
I have a (Swing + AWT) application which uses an external jar library (by
I have an Android App which contains an external dependend jar library. This external
I have a Java project which includes the Xerces library. When I process the
I have a java compiled library in a jar.for which i have written documentation
I have a jar library. I used Java Class File Editor (CE) to modify
I have a custom tag, packaged into a library jar that is included in
I have a jar on the classpath which contains a hibernate.properties. This causes problems
I am developing a library for Android applications which does not use native code

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.