Saturday, April 12, 2014

In the android adds a new jar, how to let android compile time throughout the whole project also compiled the jar out of it?


I added a xxxxxx.jar package in android source code, the compiler can generate
aloneHowever, in the whole series, when the whole project, only out directory generated xxxxxx_intermediates, does not generate xxxxxx.jar

Great God wanted to ask you, how to configure can be packaged into xxxxxx.jar
time in the whole series
Thank
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Create a libs directory, go into the jar, and then select the jar right build -> add to build path
Reply:
cited a floor guoyoulei520 reply:
a new libs directory, go into the jar, and then select the jar right build -> add to build path


So, I compile android on ubuntu on the whole project, I found myself newly added. Jar not packaged generate x.jar, but in out \ target \ common \ obj \ JAVA_LIBRARIES directory generated x_intermediates, indicating that this thing has been compiled , just not packaged generate x.jar

My question is how to let him generate x.jar

In addition, a separate compile this jar is not the problem.
Reply:
reference to the second floor Leo_superxue reply:
Quote: references to a floor guoyoulei520 reply:

Create a libs directory, go into the jar, and then select the jar right build -> add to build path


So, I compile android on ubuntu on the whole project, I found myself newly added. Jar not packaged generate x.jar, but in out \ target \ common \ obj \ JAVA_LIBRARIES directory generated x_intermediates, indicating that this thing has been compiled , just not packaged generate x.jar

My question is how to let him generate x.jar

In addition, a separate compile this jar is not the problem.

Oh, my direct compiled in eclipse
Reply:
Should be written inside mk wrong, you refer to other works look inside lib file is how it's written mk
Reply:
references, 4th Floor guoyoulei520 reply:
should be written inside mk wrong, you refer to other works look inside lib mk file is how it's written


I seem to find it a:
android \ build \ core \ dex_preopt.mk
The inside
DEXPREOPT_BOOT_JARS: = core: core-junit: bouncycastle: ext: framework: android.policy: services: apache-xml: filterfw

May later add on it

Reply:
references, 5th Floor Leo_superxue reply:
Quote: references to the 4th floor guoyoulei520 reply:

Should be written inside mk wrong, you refer to other works look inside lib file is how it's mk wrote


I seem to find it a:
android \ build \ core \ dex_preopt.mk
The inside
DEXPREOPT_BOOT_JARS: = core: core-junit: bouncycastle: ext: framework: android.policy: services: apache-xml: filterfw

May later add on it

Reply:
libs directory under the jar into the project, the project Android.mk probably look something like this:
 
LOCAL_PATH: = $ (call my-dir)

include $ (CLEAR_VARS)

LOCAL_MODULE_TAGS: = optional

LOCAL_SRC_FILES: = $ (call all-java-files-under, src)

LOCAL_PACKAGE_NAME: = application name

LOCAL_STATIC_JAVA_LIBRARIES: = alias

include $ (BUILD_PACKAGE)




include $ (CLEAR_VARS)

LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES: = Alias: libs / *** jar
.
include $ (BUILD_MULTI_PREBUILT)


include $ (call all-makefiles-under, $ (LOCAL_PATH))


Aliases can easily take.

Reply:
reference to the 7th floor tantahe reply: under libs directory
jar into the project, the project Android.mk probably look something like this:
 
LOCAL_PATH: = $ (call my-dir)

include $ (CLEAR_VARS)

LOCAL_MODULE_TAGS: = optional

LOCAL_SRC_FILES: = $ (call all-java-files-under, src)

LOCAL_PACKAGE_NAME: = application name

LOCAL_STATIC_JAVA_LIBRARIES: = alias

include $ (BUILD_PACKAGE)




include $ (CLEAR_VARS)

LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES: = Alias: libs / *** jar
.
include $ (BUILD_MULTI_PREBUILT)


include $ (call all-makefiles-under, $ (LOCAL_PATH))


Aliases can easily take.


Or thank you Ha, not this. Mk not write.
When the whole series is not packaged generate jar, can separate series.
Reply:
references, 5th Floor Leo_superxue reply:
Quote: references to the 4th floor guoyoulei520 reply:

Should be written inside mk wrong, you refer to other works look inside lib file is how it's mk wrote


I seem to find it a:
android \ build \ core \ dex_preopt.mk
The inside
DEXPREOPT_BOOT_JARS: = core: core-junit: bouncycastle: ext: framework: android.policy: services: apache-xml: filterfw

May later add on it


Looks like this approach does not work, I can use the following modifications:
android \ device \ ti \ panda \ device.mk

PRODUCT_PACKAGES + jar package name
= desired

No comments:

Post a Comment