I’m trying to add two different custom maven repo ...
# gradle
j
I’m trying to add two different custom maven repo like so :
Copy code
repositories {
    google()
    mavenCentral()
    maven {
        url = uri("<https://maven.pkg.jetbrains.space/org1/p/dep1/maven>")
        name = "name1"
        credentials(PasswordCredentials::class)
    }
    maven {
        url = uri("<https://maven.pkg.jetbrains.space/org2/p/dep2/maven>")
        name = "name2"
        credentials(PasswordCredentials::class)
    }
}
Gradle can resolve one at a time, but if I add both and build, it fails on the second one. Am I missing something here?
v
Can you specify "fails"?
j
Looking more into this, I figured out Android studio requires a specific android target when I did not have to provide it before. This two dependencies are kotlin multiplatform project, so adding an android target to them seems to have fix that specific issue. Now I have android related issues.