Adding AAR in IntelliJ IDEA without gradle

2020-08-09 07:14发布

问题:

How can I add aar-module into the project in IDEA (without gradle, using ant)?

回答1:

in android studio go to file/new/new module then select new module from existing aar package



回答2:

With Android Studio, that is pretty the same, the only solution I found was to extract the .aar content in a folder to use with the import module procedure. (File -> Project Structure... -> Modules -> + button -> Import module)

If that doesn't work check if in the above extracted folder there is a .jar file and try to load it as external library (File -> Project Structure... -> Libraries)