Generating AAR file from third party library Android - android

I am looking to create an AAR file from an existing third party android library but have so far been unable to find much documentation online. One post mentioned that the file is automatically generated when you add the library as a dependency to an existing Android Studio project and build that project, another said to use Apache Axis2. Still though, im having trouble generating it. If anyone could give advice or point me in the right direction that would be great. (P.S apologies if this is a noob question) Thanks!

Related

Android, Obfuscate a Jar library?

I have a Jar library developed in Eclipse ADT. I want to share it to customers but before that, I have to obfuscate my Android Jar library. I have searched enough but no clear answer was found. How can I do this?
I have tried Proguard inside and outside Eclipse but failed to get result!
Also tried to get information by communicating with Guardsquare company, but no clear result yet!
Any help is appreciated.
Thanks in advance!
So I ended up using native c++ code for important parts of my library. Now I have to share an .SO library beside my Jar library so users import both. Not so bad! At least Android Studio decompiler won't decompile my .SO file.
Advice: Don't waste your time securing your Jar file! It'll be reverse engineered like a piece of cake!
The .SO file also can be decompiled, but it would be much harder and result won't be same as the source code!

How to compile JAR for the SuperSLiM library?

I'm an android newbie, and would like to create a jar file for this library:
https://github.com/TonicArtos/SuperSLiM
I've read some other online answers which say that the gradle build file has to be modified, which I tried to do, but not sure if I did it correctly:
How to create an Android Library Jar with gradle without publicly revealing source code?
Can anyone help me with this??
My goal is to use the *.jar file to create an Android Binding Project within a Xamarin project to be able to use the library in Xamarin.
Thanks!
I've just created the necessary bindings, you can check out the (pretty simple) binding project on https://github.com/dmunch/SuperSLiM-binding or download the NuGet at https://www.nuget.org/packages/SuperSLiM/
I am not a Xamarin user myself, but a quick look at the Xamarin changelog indicates that you can use the Build Action of LibraryProjectZip to bind a .aar project, which is what SuperSLiM is.
To actually make sense of this, here is a blog post which may also be useful. From the article it seems you need to download the .aar file from one of the hosted locations, bintray or mavencentral, and follow some instructions to create the Xamarin binding.

Include library project to android appcelerator titanium module

I have an android library project, which I want to include to my titanium android module. In the documentation I found no way to reference the library project. For adding a third party library the documentation has a guide to include a .jar file. So I tried to add the .jar file.
The library project also depends on native libraries (.so files) and resources. I experimented a little bit and I got it somehow working, that the ressources and native libraries are included in my .apk. The problem is: at runtime I get a ClassDefNotFoundError.
I tried pretty much everything and I don't know how to get this running.
BTW I'm a newbie, so maybe it is not even possible what I'm trying to do.
Can anyone please help?
This
fixed it. Just modify the script.

Using SkyEpub jar library in an android project

I am going to use SkyEpub 3 library in my android application to read ebooks in epub format. To get familiar with the method of using SkyEpub I have downloaded its android demo project from here.
Its demo project is working properly, But when I use the skyepub.jar in my own project, it says some methods and classes from the jar file are undefined. Of course in the mean time I am using an unlicensed version of this library. I want to test it before buying the license if it was ok. I doubt that the errors are because of using the unlicensed version of the library in my project.
Can any one tell me please what is the problem exactly?
Thank you in advance.
Because there are a lot of classes ,which are not in jar, in example project. In the example, they create a lot of classes by extends another classes from jar. I used this jar before.
I found what was the problem. I increased priority of the jar file in eclipse. Now it works.

How share a library on Android

I want to build a java library with some useful things I done to Android. Just like my other project: https://github.com/MarkyVasconcelos/Towel
My question is, what is the best way to share a library on Android?
Source codes from a entirely Android project(res, src, Manifest, etc..)?
Only source codes(.java)?
A generated jar with the 'src' folder?
Thanks.
I'd distribute an Android library project. I have several such projects in my various GitHub repositories -- those links are just three of 'em.
Although never done myself I think you have to provide an Android Library Project if your library contains android specific content.

Categories

Resources