程序类型已存在:Android Studi 3.1.2中的android.arch.lifecycle.LiveData $ 1

时间:2018-08-07 00:02:01

标签: android android-studio android-gradle android-livedata

当我在Android Studio中按“播放”按钮时,我的应用程序会编译,但显示此错误

Program type already present: android.arch.lifecycle.LiveData$1

我尝试删除.gradle文件夹,然后转到Build > Clean ProjectBuild > Rebuilt Project。但是,它仍然会产生该错误。

这是我的应用的app/build.gradle

apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
    applicationId "xxxxxxxx"
    minSdkVersion 19
    targetSdkVersion 27
    multiDexEnabled true
    versionCode 5
    versionName "1.0.4"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'),  'proguard-rules.pro'}
}
}dependencies {

implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'

implementation 'com.google.firebase:firebase-auth:11.0.2'
implementation 'com.google.firebase:firebase-database:11.0.2'
implementation 'com.google.firebase:firebase-storage:11.0.2'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.+'
implementation 'com.squareup.picasso:picasso:2.5.2'


implementation 'com.google.android.gms:play-services-maps:11.0.2'
implementation 'com.android.support:multidex:1.0.2'

implementation 'com.google.android.gms:play-services:11.0.2'
implementation 'com.google.android.gms:play-services-auth:11.0.2'
implementation 'com.google.firebase:firebase-messaging:11.0.2'
implementation 'com.android.volley:volley:1.0.0'
implementation 'com.firebaseui:firebase-ui-database:2.3.0'
implementation 'id.zelory:compressor:2.1.0'
implementation 'com.squareup.okhttp:okhttp:2.5.0'}
apply plugin: 'com.google.gms.google-services'

0 个答案:

没有答案