Rusty Well-Known Member Licensed User Longtime User Jan 19, 2017 #1 I'm trying to convert the .aar library created by Android Studio to a usable .jar file (to be included within a B4a project). I thought the SLC would do this, but it seems to want to compile the source code. Am I doing something wrong or using the wrong tool? Rusty
I'm trying to convert the .aar library created by Android Studio to a usable .jar file (to be included within a B4a project). I thought the SLC would do this, but it seems to want to compile the source code. Am I doing something wrong or using the wrong tool? Rusty
Erel B4X founder Staff member Licensed User Longtime User Jan 19, 2017 #2 You don't need to convert it. B4A v6+ supports AAR packages.
Rusty Well-Known Member Licensed User Longtime User Jan 19, 2017 #3 Do you use #additional libraries or can you access it through the libraries tab in B4a?
Erel B4X founder Staff member Licensed User Longtime User Jan 19, 2017 #4 You can use #AdditionalJar to reference the aar file and then use JavaObject to access it. The second option is to create a regular wrapper with xml and jar file and use @DependsOn to reference the AAR file.
You can use #AdditionalJar to reference the aar file and then use JavaObject to access it. The second option is to create a regular wrapper with xml and jar file and use @DependsOn to reference the AAR file.
Rusty Well-Known Member Licensed User Longtime User Jan 19, 2017 #5 Thanks Erel, Can you point me to a post where "Create a regular wrapper" and @DependsOn is demonstrated Rusty
Thanks Erel, Can you point me to a post where "Create a regular wrapper" and @DependsOn is demonstrated Rusty
Erel B4X founder Staff member Licensed User Longtime User Jan 19, 2017 #6 ExoPlayer: https://github.com/AnywhereSoftware/B4A_ExoPlayer/tree/master/src/anywheresoftware/b4a/objects FirebaseAdMob - this one is simpler but instead of referencing an AAR directly it uses Android SDK repository: https://github.com/AnywhereSoftware/B4A_FirebaseAdMob
ExoPlayer: https://github.com/AnywhereSoftware/B4A_ExoPlayer/tree/master/src/anywheresoftware/b4a/objects FirebaseAdMob - this one is simpler but instead of referencing an AAR directly it uses Android SDK repository: https://github.com/AnywhereSoftware/B4A_FirebaseAdMob