Не удалось найти androidx.навигация: safe-args-gradle-плагин: 1.0.0-alpha01
Я хочу использовать компоненты архитектуры навигации.
но у меня проблема с импортом safeargs
синхронизировать сообщения:
не удалось найти androidx.навигация: safe-args-gradle-плагин: 1.0.0-alpha01. Поиск в следующем Требуется:
проект:
я следовал добавление компонентов в проект но не решил мою проблему.
: построить.Gradle в// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'
        classpath "androidx.navigation:safe-args-gradle-plugin:1.0.0-alpha01"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
allprojects {
    repositories {
        google()
        jcenter()
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}
модуль: построение.Gradle в
apply plugin: 'com.android.application'
apply plugin: 'androidx.navigation.safeargs'
android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.mangoslab.navigation"
        minSdkVersion 21
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.1.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    def nav_version = "1.0.0-alpha01"
    implementation "android.arch.navigation:navigation-fragment:${nav_version}" // use -ktx for Kotlin
    implementation "android.arch.navigation:navigation-ui:${nav_version}" // use -ktx for Kotlin
    // optional - Test helpers
    androidTestImplementation "android.arch.navigation:navigation-testing:${nav_version}" // use -ktx for Kotlin
}
            3 ответов
попробуйте добавить
classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0-alpha01" 
вместо
classpath "androidx.navigation:safe-args-gradle-plugin:1.0.0-alpha01"
проверьте пакеты из репозитория Google maven
http://joxi.ru/GrqxKRgiQn1OZA
принятый ответ не работа для меня. Но когда я использовал alpha 5 он работал
проект build.gradle:
classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0-alpha05"