Gradleエラー:OSに依存しないパス 'META-INF /androidx.localbroadcastmanager_localbroadcastmanager.version'で複数のファイルが見つかりました

Asif-Ul Islam Akash

は自分のAndroidアプリにandroid-image-cropperライブラリが必要だったので、それをgradle依存関係に追加しました。同期後、いくつかのエラーが表示されていました。

これが1つで、gradleは修正されません。

OSに依存しないパス「META-INF / androidx.localbroadcastmanager_localbroadcastmanager.version」で複数のファイルが見つかりました

そして、build.gradleアプリからの私のは:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "asif.com.firebasedemo.activity"
        minSdkVersion 18
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        debug {

            resValue 'string', "FACEBOOK_APP_ID", FirebaseAuthenticationSample_FACEBOOK_APP_ID
            resValue 'string', "FB_LOGIN_PROTOCOL_SCHEME", FirebaseAuthenticationSample_FB_LOGIN_PROTOCOL_SCHEME
            buildConfigField 'String', "DEFAULT_WEB_CLIENT_ID", FirebaseAuthenticationSample_DEFAULT_WEB_CLIENT_ID

        }
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

            resValue 'string', "FACEBOOK_APP_ID", FirebaseAuthenticationSample_FACEBOOK_APP_ID
            resValue 'string', "FB_LOGIN_PROTOCOL_SCHEME", FirebaseAuthenticationSample_FB_LOGIN_PROTOCOL_SCHEME
            buildConfigField 'String', "DEFAULT_WEB_CLIENT_ID", FirebaseAuthenticationSample_DEFAULT_WEB_CLIENT_ID
        }
    }
    compileOptions {
        targetCompatibility JavaVersion.VERSION_1_8
        sourceCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    //noinspection GradleCompatible
    implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
    implementation 'com.android.support.constraint:constraint-layout:1.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'

    //firebase libraries

//    compile 'com.google.firebase:firebase-messaging:17.3.4'     //firebase cloud messaging

    implementation 'com.google.firebase:firebase-auth:16.0.4'
    implementation 'com.google.firebase:firebase-storage:16.0.4'
    implementation 'com.google.firebase:firebase-core:16.0.4'
    implementation 'com.google.firebase:firebase-database:16.0.4' // Realtime Database
    implementation 'com.google.firebase:firebase-auth:16.0.4'// Email Password based authentication
    implementation 'com.google.android.gms:play-services-auth:16.0.1'// google sign in integration
    implementation 'com.facebook.android:facebook-login:4.38.0'// facebook integration


    implementation 'com.intuit.ssp:ssp-android:1.0.6'// for text size
    implementation 'com.intuit.sdp:sdp-android:1.0.6'// for layout size

    implementation 'com.android.support:design:28.0.0'
    implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
}
apply plugin: 'com.google.gms.google-services'

ここで何が問題なのかわからず、問題が発生する原因を特定できませんでした。私は少し検索して、これに似た他のタイプのエラーに対する他の解決策を見つけましたが、まったく役に立ちませんでした。

誰かがここで本当に間違っていることと修正する必要があることを提案できますか?

アドバイス/提案に関するものは非常に役に立ちます。前もって感謝します。

インダーク

代わりにこれを試してください

api'com.theartofdev.edmodo:android-image-cropper:2.7.0 '

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

Related 関連記事

ホットタグ

アーカイブ