build - Android dex a JAR file which includes extra non .java files -


I have a JAR library that has some non-source code files in some different / src packages (JSON files in this case) when I add that JR as a dependency on my Android projects and I create an APK file, those JSON files are not in APK or Classes (I do not have DX 2 if and the files that are visible are missing)

I How to tell dex to include those Jason files?

AFAIK, only a deck file. Class files (and strings) are designed to keep. Here is an old description of the dex file format. (I could not find a search on Google's site)

When Google parses the dependency jar on compiling your resolution time, it only takes care of class files, because it is the same Dependencies, for which you want to use, your code which is not defined in your code, I am not sure that it takes care of the things that you can have in those jars.

The question you want to ask is not how to tell DSX to include JSO files (this can not be done), but how to get those JS files in your APK Unfortunately, if they get accumulated in a jar, then I do not know that there is no way to manually set the jar in the ant and set some to move files automatically. Compile-time jar dependency is not designed to copy files only to your project package.

Comments