attaching apklib in different phase