I was using this library - https://github.com/shamanland/fonticon - as a dependency of an application that I'm developing on Android Studio 0.5.8. I found out that custom maven repo is no longer reachable, so I decided to compile it to aar, and put it in my android project as a local library.
I simply ran 'gradle assembleRelease' on this project, then copied the build/libs/libs.aar file to my project in libs directory. As explained in this blog entry - http://geekgarage.labasland.net/local-aar-android-library/ - I added the reference to the file, so build.gradle file looks like the following.
dependencies {
compile files('libs/volley.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
compile files('libs/fonticon.aar')
compile 'com.android.support:support-v4:19.1.0+'
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
compile 'com.github.chrisbanes.actionbarpulltorefresh:library:+'
compile 'com.android.support:appcompat-v7:19.+'
}
I'm still getting errors as if the library isn't there. What is strange to me is that even if I deliberately mis-reference that file (e.g. changing the file name to fonticon.jar) gradle does not complain at all. So I'm wondering if that file is being used at all. There is no feedback from gradle that this file is successfully loaded or not.
Is there anything I'm missing? How can I ensure that aar file is referenced and loaded successfully?