shouldn't progruard check automatically that your library function is used by the app and not remove it? proguard should run after the normal compilation so I don't get it why you get a compilation error. but I haven't developed libraries with proguard on my own so far...