How can I solve the error (25,13) of android studio 3.0?

1
Error:(25, 13) Failed to resolve: org.mongodb:stitch:1.0.0-SNAPSHOT
Show in Filw
Show in Project Structure Dialog

This is what appears when I try to compile the App.

I am trying to use MongoDB Stitch and place in build.Grandle (Project test) the following:

maven {
        url "https://oss.sonatype.org/content/repositories/snapshots"
    }

Looking like this:

// Top-level build file where you can add configuration options common to 
all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots"
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

also in build.grandle (Module app) I put the code:

compile 'org.mongodb:stitch:1.0.0-SNAPSHOT'

in the dependencies looking like this:

apply plugin: 'com.android.application'

 android {
    compileSdkVersion 23
    buildToolsVersion '26.0.2'

    defaultConfig {
        applicationId "com.example.hasslerisaac.ruffy"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.2.0'
    compile 'org.mongodb:stitch:1.0.0-SNAPSHOT'
}

all this as shown by the MongoDB page to link the Stitch application of the Cluster to the application. Please help.

    
asked by Cristian Camelo Ariza 21.11.2017 в 05:39
source

0 answers