Add custom maven repository to Android project build.gradle file.

已回答

Is there any way to add a new repository (eg. UrlBasedRepositoryModel() ) to a RepositoriesModel?

Was able to add a dependency using DependenciesModel.addArtifact() but similar method is not available in RepositoriesModel.

0

You're right, there is no such an API within the Android gradle parser. You can request the feature at the Android Studio bug tracker.

2

请先登录再写评论。