adding create repository by uri
fix the regex bug for android.