因此,在运行我的程序的过程中,我的build.gradle失败,并显示以下错误.我的意思是,它实际上是在一秒之前起作用的,而不是在一秒之后.我的答卷什么也没改.

Could not find androidsdk.modules:shield:unspecified.
Required by:
    project :app > com.facebook.android:facebook-login:5.15.2
    project :app > com.facebook.android:facebook-core:5.15.2
    project :app > com.facebook.android:facebook-common:5.15.2
Search in build.gradle files

这是我的格拉德尔.

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'

android {
    compileSdkVersion 28
    buildToolsVersion "29.0.2"
    defaultConfig {
        multiDexEnabled true
        applicationId "com.example.casualdatingapp"
        minSdkVersion 26
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    lintOptions {
        disable "ResourceType"
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
}

dependencies {


    implementation 'com.google.firebase:firebase-functions:19.0.1'
    implementation "com.android.support:support-compat:28.0.0"
    implementation 'com.google.firebase:firebase-messaging:20.1.0'
    implementation 'net.yslibrary.keyboardvisibilityevent:keyboardvisibilityevent:2.3.0'
    implementation 'com.github.jakob-grabner:Circle-Progress-View:1.4'
    implementation 'com.github.smarteist:autoimageslider:1.3.2'

    implementation "com.android.support:support-v4:+"
    implementation 'com.nineoldandroids:library:2.4.0'
    implementation 'com.daimajia.slider:library:1.1.5@aar'
    implementation "com.yuyakaido.android:card-stack-view:2.3.4"
    implementation 'org.mongodb:stitch-android-sdk:4.1.0'
    implementation 'com.mindorks:placeholderview:0.7.1'
    implementation 'com.github.bumptech.glide:glide:3.7.0'
    implementation 'com.google.code.gson:gson:2.7'
    api 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.google.android.gms:play-services-location:17.0.0'
    implementation 'com.facebook.android:facebook-login:[5,6)'
    implementation 'com.soundcloud.android:android-crop:1.0.1@aar'
    implementation 'com.mikhaellopez:circularimageview:3.2.0'
    api 'com.google.android.material:material:1.2.0-alpha01'
    implementation 'com.edmodo:rangebar:1.0.0'
    implementation 'pub.devrel:easypermissions:3.0.0'
//    implementation 'com.squareup.picasso:picasso:2.3.2'
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.android.support:multidex:1.0.3'
    implementation 'com.google.firebase:firebase-analytics:17.2.0'
    implementation 'com.google.firebase:firebase-storage:19.1.0'
    implementation 'com.google.firebase:firebase-auth:19.2.0'
    implementation 'com.google.firebase:firebase-firestore:21.3.1'
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
    implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.1.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    def nav_version = "2.1.0"

    // Java language implementation
    implementation "androidx.navigation:navigation-fragment:$nav_version"
    implementation "androidx.navigation:navigation-ui:$nav_version"

    // Kotlin
    implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
    implementation "androidx.navigation:navigation-ui-ktx:$nav_version"

}
repositories {
    mavenCentral()
    maven { url "https://jitpack.io" }
}

apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android-extensions'

我不知道这是怎么发生的也不知道为什么.恢复到之前有效的git回购不会改变任何事情.可能是什么问题呢?

推荐答案

这帮我修好了.今天才开始.

implementation 'com.facebook.android:facebook-android-sdk:5.15.3'

Kotlin相关问答推荐

Kotlin:有限的并行性并不是限制并行性

可以从背景图像中点击图标吗?

如何修改muableStateMapOf的值?

访问者闭包中的Kotlin序列yield 率

禁用 Gradle执行消息

如何使用 Kotlin Maven 更改 Minecraft 插件中的 Shulker GUI 标题

为什么我的通用Kotlin函数中的这个转换未经判断?

如何将消费者放入 Kotlin 的 map 中?

如何从 Period.between() 返回的字符串中提取信息? (Kotlin )

Kotlin 可空泛型

验证构造函数中的值组合

如果不为空,则为 builder 设置一个值 - Kotlin

Jetpack compose 可滚动表格

为什么没有remember 的 mutableStateOf 有时会起作用?

错误:cannot find symbol import com.gourav.news.databinding.ActivityDetailBindingImpl;

如何有效地填充 Gradle Kotlin DSL 中的额外属性?

从代码块执行和返回(在 Elvis 运算符之后)

Kotlin 的类型具体化使哪些在 Java 或 Scala 中无法实现的成为可能?

禁用 IntelliJ kotlin * 导入?

我们如何在Java注释声明中引用Kotlin常量?