aar

How to convert AAR to JAR

孤街醉人 提交于 2019-11-26 02:17:38
问题 Situation : I intend to use a Java library and I only have an AAR file from a Maven repository but I need the JAR file. Background story: I tried to compile a library, but its Gradle structure was unstable. So I asked for a compiled jar file, and its developer handed me an aar file from some Maven repository (the developer couldn\'t compile his own project). The Gradle configuration was a mess, it depended on multiple libraries and Gradle has thrown some exceptions. I tried to use it in my

Adding local .aar files to Gradle build using “flatDirs” is not working

你说的曾经没有我的故事 提交于 2019-11-26 00:35:58
问题 I\'m aware of this question: Adding local .aar files to my gradle build but the solution does not work for me. I tried adding this statement to the top level of my build.gradle file: repositories { mavenCentral() flatDir { dirs \'libs\' } } I\'ve also put the slidingmenu.aar file into /libs and referenced it in the dependencies section: compile \'com.slidingmenu.lib:slidingmenu:1.0.0@aar\' but it did not work at all. I tried compile files(\'libs/slidingmenu.aar\') as well but with no luck.