Questions tagged [aar]

AAR (Android Library Archive) is a package file format, similar to APK (Android package) file format, that you can use as a dependency for an Android app module

AAR (Android Library Archive) is the binary distribution of an Android library project. AAR file is variant of file similar to . AAR files can contain Android resources and a manifest file, which allows you to bundle in shared resources like layouts and drawables in addition to Java classes and methods.

AAR file is used to share resources between multiple Android applications or between multiple versions (for example free and paid) of same Android application.

1001 questions
0
votes
1 answer

Android Activity as library

I'm stating a android project which I would like to structure into plugins. To test the plugin structure I created a new project in android studio with a empty activity. I changed the displayed text to "Hello plugin" just to be able to identify the…
0
votes
0 answers

Not able to load an aar dependency from a standard Java library module

For one of my Android projects, I decided to take as much functionality out in a standard Java library module, as possible. One of my dependencies is rxAndroid which depends on rxJava. I noticed that the rxJava classes load normally by Gradle, but…
Preslav Rachev
  • 3,983
  • 6
  • 39
  • 63
0
votes
1 answer

Android AAR third party jars

I have made an AAR using Android Studio and I can successfully use it in any app. Problem is I have to add all the dependencies it needs manually to the app build.gradle (like compile 'org.slf4j:slf4j-android:1.7.10'). I want the AAR to actually…
Eloy_007
  • 226
  • 1
  • 2
  • 9
0
votes
0 answers

Gradle build, solve dependency for library AAR stored on gitlab

I'm working on an android application and I need to reuse some modules (like navigation, header) in other android applications. My apps and modules are stored on gitlab, each of them has a repository. What i would like to do if possible: store AAR…
ThibaultLM
  • 31
  • 2
0
votes
1 answer

ProGuard issues with Android Archieve(.aar) library

I've a library project which I want to distribute, in AAR format. I've applied ProGuard on it. ProGuard settings works well if I use this lib as a module, but not when I use resulting AAR. Basically it fails with exception…
sandeepd
  • 515
  • 2
  • 16
0
votes
0 answers

Add ".aar" dependency which uses AA, to application module in Android Studio 1.1.0

I am following the post : post but after following that post still I am encounter into error : Could not find method org.androidannotations.api.view.OnViewChangedNotifier.replaceNotifier, referenced from method MyClass_.getInstance_ My library…
user2618875
  • 889
  • 2
  • 11
  • 23
0
votes
2 answers

Extract jar from aar for cordova plugin, Class not found error at runtime

I have an "aar" file that was generated using gradle with apply plugin: 'com.android.library' Now I want to use this aar library to create a cordova plugin. I unzip the aar file, get a "classes.jar" and put the jar into cordova's "libs" directory.…
user3839198
  • 115
  • 1
  • 10
0
votes
1 answer

Libraries overview in Android Studio

I have to use few *.aar libraries in my android project. I have already added definition of the folder which contains all libraries to the build.gradle and everything wokrs fine. But the thing I have a problem with is actually to find out which…
Belurd
  • 772
  • 1
  • 13
  • 31
0
votes
1 answer

Adding Facebook Dependency

I'm trying to add Facebook dependency to my project. I tried adding the following to my pom.xml: com.facebook.android facebook-android-sdk 4.1.0
Majid Laissi
  • 19,188
  • 19
  • 68
  • 105
0
votes
0 answers

Android Archive (AAR) package obfuscation

I'm setting obfuscation rules for a library project (AAR file). All the rules are respected. However, all the package names aren't obfuscated. The default behavior for the obfuscation is that all package names are obfuscated, are there any special…
Ahmed Zayed
  • 2,165
  • 1
  • 20
  • 21
0
votes
1 answer

Using AAR's in Android Studio

I have two projects that use the Calligraphy Library for custom fonts in Android. I added the Calligraphy aar dependency / module to the project the exact same way in both projects except that one project can see the namespace and the other…
Mullazman
  • 507
  • 5
  • 15
0
votes
1 answer

How does the build system get google_play_services_version from the .aar?

Can anyone help me understand how the resource merging works when using the google-play-services.aar? An AndroidManifest.xml that implements google play services might have something like below:
mateor
  • 1,293
  • 1
  • 16
  • 19
0
votes
1 answer

NoSuchMethodError while using aar library

I am using third party aar library in my project and it cryshes while trying to call android.support.v4.widget.SwipeRefreshLayout.setColorScheme(IIII)V. I included latest version of support library in my gradle file, I even checked apk file and…
NazarK
  • 1,221
  • 2
  • 14
  • 16
0
votes
1 answer

Combine multiple jar files in Android Studio

Our company has an application that is built upon some proprietary 3rd party libs (jar files). I need to make an API for our app but need the 3rd party lib jars to not be directly accessible or at least hidden from the user. I was thinking the…
Spider-Paddy
  • 303
  • 2
  • 14
0
votes
1 answer

Android studio aar modules

Been having some trouble understanding the concept of aar modules in android studio (after being with Eclipse for many years). Say i import aar file as a module to my project with "app" being the application. Can the app use code which is in the…
Michael A
  • 5,770
  • 16
  • 75
  • 127