Java 材质:材质:1.1.0-alpha08失败,但1.0.0工作正常

Java 材质:材质:1.1.0-alpha08失败,但1.0.0工作正常,java,android,android-studio,gradle,Java,Android,Android Studio,Gradle,我正在研究新的安卓材质,它看起来不错,但为了正确使用颜色选项,我需要使用com.google.android.material:material:1.1.0(最新版本是alpha08)显然存在依赖性问题,因为当我在安卓studio中构建时,它说一切正常,但当我运行时,它就丢失了 android material com.android.builder.dexing.DexArchiveBuilderException 在运行时(像这样) 这是我的app.build.gradle depen

我正在研究新的安卓材质,它看起来不错,但为了正确使用颜色选项,我需要使用com.google.android.material:material:1.1.0(最新版本是alpha08)显然存在依赖性问题,因为当我在安卓studio中构建时,它说一切正常,但当我运行时,它就丢失了

 android material com.android.builder.dexing.DexArchiveBuilderException
在运行时(像这样)

这是我的app.build.gradle

dependencies {
    implementation 'androidx.core:core:1.0.2'
    implementation 'androidx.media:media:1.0.1'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
    implementation 'io.reactivex.rxjava2:rxjava:2.2.10'
    implementation 'com.google.android.material:material:1.0.0' // fails if I switch to implementation 'com.google.android.material:material:1.1.0-alpha08'
    api 'com.google.guava:guava:28.0-android'
    implementation files('libs/acra-4.5.0.jar')
    implementation files('libs/commons-collections-3.2.1.jar')
    implementation 'com.google.firebase:firebase-core:17.0.1'
    implementation 'com.google.firebase:firebase-messaging:19.0.1'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.exifinterface:exifinterface:1.0.0'
}

就我所能告诉我们的一切,你认为是什么问题?

我发现这是原因,将其添加到
build.gradle[Module.app]
文件中

android {

   [.YOUR.OTHER.STUFF.HERE.]

   compileOptions {
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8
   } 
}