これは、私がアプリケーションをコンパイルしようとすると表示されます。どうすればAndroid Studio 3.0のエラー(25.13)を解決できますか?
私はMongoDBのステッチを使用しようとしていると、次のbuild.grandle(プロジェクトのテスト)中に入れた:
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
次のように探している相手:
build.grandleでも// 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
}
(モジュールをこのように見て、依存関係で
compile 'org.mongodb:stitch:1.0.0-SNAPSHOT'
:
アプリ)私は、コードを置きます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'
}
エラー
Error:(25, 13) Failed to resolve: org.mongodb:stitch:1.0.0-SNAPSHOT Show in Filw Show in Project Structure Dialog
すべてこのアプリケーションにクラスタのステッチアプリケーションに参加するためのMongoDBページに示すように。助けてください。