java - 找不到 androidsdk.modules

标签 java android android-studio gradle kotlin

所以在运行我的程序的过程中,我的 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 repo 并没有改变任何东西......可能是什么问题?

最佳答案

这为我修好了。今天才开始发生。

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

关于java - 找不到 androidsdk.modules,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60049166/

相关文章:

java - 如何获取ListView中显示的Spinners的值?

java - 像电子表格一样在 Java 中递增超过 'Z' 的字符

Android Studio - Kotlin 测试抛出 - 找不到类 - 空测试套件

list 中的 Android 应用程序与 Activity

android-studio - 更新了 android studio 并在 Gstreamer 构建中失败了

java - 如何使用 Java 识别 XML 中节点的 xpath?

java - ManyToOne 双向关系中 POST 请求上的 org.hibernate.exception.ConstraintViolationException

android - 如何检测 Android 8.0 Oreo API 26 及更高版本上的应用终止

android - 如何将服务绑定(bind)到另一个 Activity ?

java - 通过php和android进行Mysql数据库搜索