this is currently used not only for aar but for apklib too