How to add third party jar in compile time but not runtime
来源:互联网 发布:php 子类访问父类属性 编辑:程序博客网 时间:2024/06/01 13:45
原文在https://groups.google.com/forum/#!topic/android-developers/1L_O7XGXsoE
12-1-16
Jelly Chen
将帖子翻译为中文
The Android.mk I use is:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call find-other-java-files, src)
LOCAL_PACKAGE_NAME := Hello3RdJar
LOCAL_STATIC_JAVA_LIBRARIES := thirdparty_jelly
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := thirdparty_jelly:lib/thirdparty.jar
include $(BUILD_MULTI_PREBUILT)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call find-other-java-files, src)
LOCAL_PACKAGE_NAME := Hello3RdJar
LOCAL_STATIC_JAVA_LIBRARIES := thirdparty_jelly
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_
include $(BUILD_MULTI_PREBUILT)
Mark Murphy
将帖子翻译为中文
For questions about custom firmware, please visit http://source.android.com.> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-d...@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
2012/1/16 Jelly Chen <sino...@gmail.com>:
- 显示引用文字 -
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-d...@
> To unsubscribe from this group, send email to
> android-developers+
> For more options, visit this group at
> http://groups.google.com/
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training in DC: http://marakana.com/training/
Jelly Chen
将帖子翻译为中文
I found the solution.
1. Android.mk
replace LOCAL_STATIC_JAVA_LIBRARIES := thirdparty_jelly
with LOCAL_JAVA_LIBRARIES := thirdparty_jelly
2. Eclipse
Use SDK addon.
copy an existing addon, replace the .jar, modify manifest.ini and source.properties a little.
lgaur
将帖子翻译为中文
Hi Jelly Chan,
I am trying to compile apk with some jar file and I don't want jar file to be part of .apk. I want at runtime apk should take jar file contents or .classes from system or device.
I am developing this using ADT . Could you please provide more info how to achieve it while using eclipse or ADT ?
Regards
Lokesh
- 显示引用文字 -
Kristopher Micinski
Re: [android-developers] Re: How to add third party jar in compile time but not runtime
将帖子翻译为中文
That's not possible unless you distribute the library as part of the firmware.
Why wouldn't you want the code to be part of the APK? Perhaps there's
something else you could do.
Kris
> --
> email to android-developers+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Why wouldn't you want the code to be part of the APK? Perhaps there's
something else you could do.
Kris
- 显示引用文字 -
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-d...@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> --- > You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-d...@
> To unsubscribe from this group, send email to
> android-developers+
> For more options, visit this group at
> http://groups.google.com/
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an > "Android Developers" group.
> email to android-developers+
> For more options, visit https://groups.google.com/
>
>
Jelly Chen
Re: [android-developers] Re: How to add third party jar in compile time but not runtime
Use android sdk add on, it's in sdk dir , like google map add on.
在 2013-7-31 下午9:23,"lgaur" <lokes...@gmail.com>写道:
- 显示引用文字 ---You received this message because you are subscribed to a topic in the Google Groups "Android Developers" group.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/1L_ O7XGXsoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 0
- How to add third party jar in compile time but not runtime
- Maven:the way to add third-party jar-package to Local Maven Repository for using conveniently
- How can I force WebLogic to use third party jars that are included in my Ear?
- How to install the third party modules under the pyCharm in the Windows
- How to add a runtime in private Cloud Foundry
- How to compile opencv in
- How to set third-party cookies with iframe?
- Gradle in Android Studio: Failed to resolve third-party libraries
- error: Resource at touchFocusParameter appears in overlay but not in the base package; use to add.
- How to compile OpenJPEG in MinGW?
- How to compile SDL in MINGW?
- how to compile opengl in cygwin
- How to compile openjdk 7 in RHEL5
- how to compile kernel in android ?
- How to compile PortAudio in Visual Studio
- How to add css class and id in @Html.TextBox mvc4 at the same time
- Add third-party code into your project
- Protocol Buffers: (9) Third Party Add ons
- 怎样用好Google进行搜索
- Android之自定义Adapter的ListView
- Android SDK Add-on Configure, Compile and Release
- python简明教程中备份脚本
- Android之ListActivity的使用和在ListView中添加图片文字
- How to add third party jar in compile time but not runtime
- android widget-system
- Java中String的比较
- 第76天
- 日记
- wsdl 的笔记
- Java代码注释XXX todo fixme 的意义
- LMH6881中文数据手册综述
- Xianfeng轻量级Java中间件平台:属性管理、字典管理