Android Question (SOLVED) AAR questions

Ferdari

Active Member
Licensed User
Longtime User
Hi everyone,

I will replace some of my JARs to AARs, but have some questions:
  1. If i use an AAR with inside Jar, assets and other sources(values.xml, assets, etc) it are accesible by the lib in runtime?
  2. If an AAR has a AndroidManifest.xml with permissons, services, etc, it are merged on the final App manifest?
  3. Its preferred to use AAR instead of simple JAR?
  4. What are the advantages using AAR(if there are)?
Thanks for your help :)
 

Ferdari

Active Member
Licensed User
Longtime User
What do you mean with your jars? Compiled libraries?
Sorry my bad english, im not an english speaker, i mean the JAR im using>
SDK libraries in JAR
B4X:
    #AdditionalJar: huawei/hianalytics-4.0.1.300.jar
    #AdditionalJar: huawei/hmssdk-opendevice-4.0.1.300.jar
    #AdditionalJar: huawei/hmssdk-base-4.0.1.300.jar
    #AdditionalJar: huawei/network-common.jar
    #AdditionalJar: huawei/network-grs.jar
    #AdditionalJar: huawei/datastore-annotation.jar
    #AdditionalJar: huawei/datastore-core.jar
    #AdditionalJar: huawei/agconnect-https.jar
    #AdditionalJar: huawei/agconnect-credential.jar
    #AdditionalJar: huawei/agconnect-core.jar
    #AdditionalJar: huawei/tasks.jar

in Android Studio i checked the examples use AARs, i downloaded the AARs but i dont know if it will make a difference.
 
Last edited:
Upvote 0

Ferdari

Active Member
Licensed User
Longtime User
Both options are fine. Nothing will be added to the manifest automatically.
If i use an AAR with inside Jar, assets and other sources(values.xml, assets, etc) it are accesible by the lib in runtime?

Or i should copy every resource manually?

Some AAR has resources folders inside:
values/values.xml
drawable/more folders and files...
 
Upvote 0
Top