小编Vik*_*ary的帖子

添加导航依赖失败

我正在尝试在我的项目中添加导航,但其显示未能添加导航依赖项,

当我在窗口中单击“确定”立即添加这些内容时,它显示添加依赖项失败,并且我的导航 xml 编辑器不可见

这是一些屏幕截图

我的 build.gradle (应用程序):-

plugins {
id 'com.android.application'
id 'kotlin-android'
id 'com.google.gms.google-services'
id 'kotlin-android-extensions'

}

android {
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
    applicationId "com.choudhary.myshop"
    minSdkVersion 21
    targetSdkVersion 31
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

androidExtensions {
    experimental = true
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
    jvmTarget = '1.8'
}

buildFeatures{
    viewBinding = true
}




}

dependencies {




implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" …
Run Code Online (Sandbox Code Playgroud)

android kotlin android-jetpack

1
推荐指数
1
解决办法
8685
查看次数

标签 统计

android ×1

android-jetpack ×1

kotlin ×1