[Android] Fixing path error and reducing dependence for extension.