jarjar

GSON + HTC Desire: Conflict. Possible solution jarjar.jar causes error

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-15 19:16:15
问题 I am trying to use GSON in Android app but it causes a crash. After some reading it seems that HTC have included GSON and that causes a conflict. One propoused solution was to use jarjar.jar to rename gson classes to solve the conflict. When I try to do this I get this error: Syntax error: Error on line 1: [{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf360] The command I am executing: java -jar jarjar-1.2.jar process rules.txt gson-2.1.jar myjson-2.1.jar rules.txt: rule com.google.gson.**

JAIN-SIP 1.2 for Android: Missing javax.sip.STACK_NAME property

冷暖自知 提交于 2020-01-07 04:39:26
问题 I'm trying to run JAIN-SIP Stack on an Android-Device (4.0.2). I was able to repackage the jar-files which were needed (jain-sip-api-1.2-src.jar, jain-sip-src-1.2.1111.jar, concurrent.jar, log4j-1.2.8.jar). This is my build.xml file which I used: <!-- Converts this project's .class files into .dex files --> <target name="-jarjar" depends="-compile"> <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="buildtools/jarjar-1.4.jar"/> <jarjar jarfile="${out.absolute.dir

How to repackage HttpClient 4.3.1 and remove dependencies on commons-logging?

时光毁灭记忆、已成空白 提交于 2020-01-01 03:22:08
问题 I want to repackage apache's httpclient lib to ship it with an android app (like https://code.google.com/p/httpclientandroidlib/ but with HttpClient 4.3.1) Therefore, I downloaded the httpclient 4.3.1 jar (includes all its dependencies) by hand and used jarjar to repackage it: x@x$: cd libs && for f in *.jar; do java -jar ../jarjar-1.4.jar process ../rules.txt $f out/my-$f; done with rules.txt : rule org.apache.http.** my.repackaged.org.apache.http.@1 Then I used ant to put the output

How to use JarJar with Android to change package names of external jars?

让人想犯罪 __ 提交于 2019-12-22 04:42:39
问题 I can't seem to find any clear instructions on how to use JarJar with an Android project. I've got a scenario where my application project relies on two separate libraries, which both happen to use the same external .jar files. If I try to compile the application I get "Conversion to Dalvik format failed with error 1". Can someone show me how to user JarJar on Android, using the build.xml file, in order to change the package name of a thirdparty .jar folder? 回答1: Try it by following these

Android: error including/repacking dependencies which reference javax core classes

戏子无情 提交于 2019-12-18 03:56:56
问题 I'm working on an Android app using Maven as the build tool. I managed to set evertyhing up correctly (maven dependencies are exported to the apk etc.), however I have one remaining problem which is driving me crazy. I want to include a dependency on simpleframework's xml parser defined as follows in my POM file: <dependency> <groupId>org.simpleframework</groupId> <artifactId>simple-xml</artifactId> <version>2.5.3</version> </dependency> When I issue mvn install on the project, I get the

Repackaging the .jar file

跟風遠走 提交于 2019-12-11 01:53:47
问题 I need to add some jars from JRE7 library to my Android project. But for example rt.jar is in conflict with android.jar from Adroid 2.2 SDK, so I get this error: Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library. This is often due to inadvertently including a core library file in your application's project, when using an IDE (such as Eclipse). If you are sure you're not intentionally defining a core class, then this is the most likely

How can I use a zipfileset src attribute without having to specify it manually for all my jars?

自古美人都是妖i 提交于 2019-12-06 19:21:10
问题 I currently have this: <jarjar destfile="a.jar" manifest="Manifest.mf"> <zipfileset src="first.jar"/> <zipfileset src="second.jar"/> </jarjar> The problem is I have to manually specify each jar, because I need the src parameter to be taken in consideration. I would want something like this: <zipfileset> <include name="*.jar"/> <zipfileset> And have their contents extracted and included in my resulting archive. Is this possible? 回答1: Maybe you could merge the jars first with: <zip destfile=

How to use JarJar with Android to change package names of external jars?

我们两清 提交于 2019-12-05 05:18:53
I can't seem to find any clear instructions on how to use JarJar with an Android project. I've got a scenario where my application project relies on two separate libraries, which both happen to use the same external .jar files. If I try to compile the application I get "Conversion to Dalvik format failed with error 1". Can someone show me how to user JarJar on Android, using the build.xml file, in order to change the package name of a thirdparty .jar folder? Satyam Try it by following these steps: firstly you copy own jar file on your project within a folder. Now you go to your project , right

How can I use a zipfileset src attribute without having to specify it manually for all my jars?

半世苍凉 提交于 2019-12-05 00:53:20
I currently have this: <jarjar destfile="a.jar" manifest="Manifest.mf"> <zipfileset src="first.jar"/> <zipfileset src="second.jar"/> </jarjar> The problem is I have to manually specify each jar, because I need the src parameter to be taken in consideration. I would want something like this: <zipfileset> <include name="*.jar"/> <zipfileset> And have their contents extracted and included in my resulting archive. Is this possible? Maybe you could merge the jars first with: <zip destfile="out.jar"> <zipgroupfileset dir="lib" includes="*.jar"/> </zip> and specify the merged jar in the zipfileset.

How to repackage HttpClient 4.3.1 and remove dependencies on commons-logging?

点点圈 提交于 2019-12-03 08:00:36
I want to repackage apache's httpclient lib to ship it with an android app (like https://code.google.com/p/httpclientandroidlib/ but with HttpClient 4.3.1) Therefore, I downloaded the httpclient 4.3.1 jar (includes all its dependencies) by hand and used jarjar to repackage it: x@x$: cd libs && for f in *.jar; do java -jar ../jarjar-1.4.jar process ../rules.txt $f out/my-$f; done with rules.txt : rule org.apache.http.** my.repackaged.org.apache.http.@1 Then I used ant to put the output together: <project name="MyProject" default="merge" basedir="."> <target name="merge"> <zip destfile="my-org