Questions tagged [apklib]
33 questions
23
votes
1 answer
Android dependencies : apklib vs aar files
From my understanding, apklib contains code + resource shared with Maven .
aar files are distributed by Gradle.
The aar differ from apklib in one major way : classes are compiled and included in a classes.jar in the root of the aar. Whereas apklib…

Raymond Chenon
- 11,482
- 15
- 77
- 110
12
votes
2 answers
Cannot find the class from library project's jar when maven build my project
I have downloaded an 3rd party Android library project, the project contains no java class file but an jar file under libs/ folder:
libs/
- CustomService.jar
res/
-…
pom.xml
This library project can be maven built to apklib archive. I built…

user842225
- 5,445
- 15
- 69
- 119
7
votes
1 answer
"trouble writing output: Too many field references: 70185; max is 65536. You may try using --multi-dex option." when building Android project
I hit this error and found no hits for the error message, so I thought I'd share the solution I came up with to save anyone else facing the problem repeating my work.
When writing a new Android library (apklib) for use in a (large) application, I'm…

blahdiblah
- 33,069
- 21
- 98
- 152
7
votes
1 answer
What is advantage of apklib from jar?
I was following this question but it doesn't answer my question completely.
What is real advantage of apklib from jar?
Possible answers:
It contains resources
But I can easily put resources to jar file as well
It contains already prepared android…

Eugen Martynov
- 19,888
- 10
- 61
- 114
3
votes
0 answers
Getting an android maven library with native dependencies to work in both gradle and maven projects
I've been banging my head against the wall the entire day trying to figure this out. I'm trying to create an android library X both as an aar and apklib. The reason for this is that we have an android app that builds using android maven plugin and…

unbekant
- 1,555
- 22
- 31
3
votes
0 answers
Theme.AppCompat not found using v7-appcompat APKLIB
I've added the v4 and v7-appcompat support dependecies into my pom.xml file:
android.support
compatibility-v7-appcompat
18
…

nano
- 2,511
- 4
- 25
- 42
3
votes
1 answer
Convert android library project to maven artifact for use in intellij idea
I am using Maven for dependency management in my android projects and its great.
I want to use a 3rd party android library project (https://github.com/emilsjolander/StickyListHeaders) and rather than download the directory and add the dependency…

Alec Holmes
- 3,625
- 4
- 22
- 23
3
votes
1 answer
R.Id. missing when using maven generated apklib in android project
I have 2 android projects:
1 library project used as an API in several other projects and
generating an apklib
2 android projects using this apklib
In my apklib project I have in one layout a referenced spinner R.id.mySpinner
I have one…

L. G.
- 9,642
- 7
- 56
- 78
2
votes
1 answer
does ADT(eclipse) supports apklib or aar now, upto ADT v23.04?
Almost no one had successful import a Apklib(aar) refenerence in ADT.
Here is a issues, but no answer. In issues, this is a solution works but ugly.
Being a fan of ADT, i do not wanna use Android Studio.
is there some way to use Apklib(aar) in…

xingjiu
- 389
- 3
- 6
2
votes
0 answers
can not find symbol Authentication Exception in Stripe library
I am trying to generate an apklib using mvn clean install. The stripe library can be built independently but with mvn clean install it gives the following error:
/Stripe.java:[87,23] cannot find symbol
[ERROR] symbol: class…

user1051505
- 952
- 3
- 22
- 37
2
votes
0 answers
Why am I getting java.lang.NoClassDefFoundError exception in android when I build using maven?
I deplyed the apklib file into maven.It is not showing any errors at the imports but during the calls to the library functions that were imported using apklib I am getting the error?
how to fix doe not match path - for the library -apklib…

abhinand
- 129
- 1
- 2
- 10
2
votes
1 answer
Import an .apklib in Eclipse without Maven?
I have recently been playing around with some Android .apklibs with Maven as explained nicely off and on Stackoverflow
I am very much satisfied with how it works and I had it running on a previously available Maven project in a matter of minutes
But…

avalancha
- 1,457
- 1
- 22
- 41
2
votes
1 answer
How to import apklib into Android Studio or IntelliJ project?
I have another Android project contains res, src, AndroidManifest.xml and project.properties and has been package into apklib.
How can I use it in my main project. I am using IntelliJ and Android Studio, after I open File > Project Structure, it…

Edward Chiang
- 1,133
- 2
- 12
- 24
2
votes
0 answers
Android apklib content gets reported by Findbugs
i have a dependency to an APK Lib in my Maven Project, Findbugs reports errors for example in the generated R class.
How can i exclude this ? I already have an exclude file for the project with basicly ignore the R file already, but the APK File…

Kitesurfer
- 3,438
- 2
- 29
- 47
2
votes
1 answer
Packaging Dependent JARs into apklib with Maven
I am developing an Android class library that compiles to an apklib using Maven. However, when I build the library project (mvn clean install), my dependent JARs (of which there are about 12) are not included in the apklib. I know that the…

mjsalinger
- 660
- 6
- 17