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

Answered

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
1 comment

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

Please sign in to leave a comment.