Migrate a project from jar to aar in Android
Overview
The sdk release 3.8.1 contains only aar binaries and no longer contains jar binaries.
Migrate the SDK
- Remove the SDK jar from the libs folder.
- Add the SDK aar to the libs folder.
- In the main project build.gradle file, add the following to all projects repository:
- flatDir
- { dirs 'libs' }
- Add the following to the app's build.gradle dependencies:
implementation (name:'sdk aar file name without the extension', ext:'aar')
Migrate a plug-in
- Remove the plug-in jar from the libs folder.
- Remove all the plug-in resources that were added to the project.
- Add the plug-in aar to the libs folder.
- Add the following to the app's build.gradle dependencies:
implementation (name:'plugin aar file name without the extension', ext:'aar')
Updated 9 months ago