我收到依赖项解析错误,但我无法解决此问题

时间:2021-07-09 07:46:55

标签: java android

这里是错误

任务“:app:checkDebugDuplicateClasses”执行失败。

<块引用>

执行 com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable 时发生故障 在模块 core-1.5.0-runtime (androidx.core:core:1.5.0) 和 support-compat-25.3.1-runtime (com.android.support:support) 中发现重复的类 android.support.v4.app.INotificationSideChannel -兼容:25.3.1) 在模块 core-1.5.0-runtime (androidx.core:core:1.5.0) 和 support-compat-25.3.1-runtime (com.android.support) 中发现重复的类 android.support.v4.app.INotificationSideChannel$Stub :support-compat:25.3.1) 在模块 core-1.5.0-runtime (androidx.core:core:1.5.0) 和 support-compat-25.3.1-runtime (com.android) 中发现重复的类 android.support.v4.app.INotificationSideChannel$Stub$Proxy .support:support-compat:25.3.1) 在模块 core-1.5.0-runtime (androidx.core:core:1.5.0) 和 support-compat-25.3.1-runtime (com.android.support:support) 中发现重复的类 android.support.v4.os.IResultReceiver -兼容:25.3.1) 在模块 core-1.5.0-runtime (androidx.core:core:1.5.0) 和 support-compat-25.3.1-runtime (com.android.support) 中发现重复的类 android.support.v4.os.IResultReceiver$Stub :support-compat:25.3.1) 在模块 core-1.5.0-runtime (androidx.core:core:1.5.0) 和 support-compat-25.3.1-runtime (com.android) 中发现重复的类 android.support.v4.os.IResultReceiver$Stub$Proxy .support:support-compat:25.3.1) 在模块 core-1.5.0-runtime (androidx.core:core:1.5.0) 和 support-compat-25.3.1-runtime (com.android.support:support) 中发现重复的类 android.support.v4.os.ResultReceiver -兼容:25.3.1) 在 core-1.5.0-runtime (androidx.core:core:1.5.0) 和 support-compat-25.3.1-runtime (com.android.support:支持兼容:25.3.1) 在模块 core-1.5.0-runtime (androidx.core:core:1.5.0) 和 support-compat-25.3.1-runtime (com.android.support) 中发现重复的类 android.support.v4.os.ResultReceiver$MyResultReceiver :support-compat:25.3.1) 在模块 core-1.5.0-runtime (androidx.core:core:1.5.0) 和 support-compat-25.3.1-runtime (com.android.support) 中发现重复的类 android.support.v4.os.ResultReceiver$MyRunnable :support-compat:25.3.1)

app build.gradle

plugins {
    id 'com.android.application'

}
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'  // Google Services plugin


android {
    compileSdkVersion 30
    buildToolsVersion "30.0.3"

    defaultConfig {
        applicationId "com.example.phonematch"
        minSdkVersion 24
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

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

dependencies {

    implementation 'androidx.appcompat:appcompat:1.3.0'
    implementation 'com.google.android.material:material:1.4.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
    //Google Firestore
    implementation platform('com.google.firebase:firebase-bom:28.2.0')
    implementation 'com.google.firebase:firebase-analytics'

    //----
    implementation 'com.google.firebase:firebase-auth:21.0.1'
    implementation 'com.google.firebase:firebase-storage:20.0.0'
    implementation 'com.google.firebase:firebase-messaging:22.0.0'

    implementation 'com.github.bumptech.glide:glide:4.12.0'
    implementation 'com.lorentzos.swipecards:library:1.0.9'
    implementation 'com.google.firebase:firebase-core:19.0.0'
    implementation 'com.google.android.material:material:1.4.0'
    implementation 'com.google.firebase:firebase-database:20.0.0'
    //navigation
    implementation 'com.github.ittianyu:BottomNavigationViewEx:1.2.4'

    //Circle ImageView
    implementation 'de.hdodenhof:circleimageview:3.1.0'
    implementation "com.github.dimorinny:show-case-card-view:0.0.1"

    implementation 'com.github.BakerJQ:Android-InfiniteCards:1.0.5'
}

1 个答案:

答案 0 :(得分:1)

只需在您的 gradle.Proparties 中添加这两行

import pandas as pd
import matplotlib.pyplot as plot

# Dictionary loaded into a DataFrame       
dataFrame = pd.DataFrame(x);
# Draw a vertical bar chart
dataFrame.plot.bar(rot=15, title="first record in bar second record in x-axis");
plot.show(block=True);
相关问题