Error:com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\user.gradle\caches\transforms-1\files-1.1\exoplayer-core-2.9.1.aar\9af73fdfd2ead1d96ee99a434d1a2a3e\jars\classes.jar
解决方法
apply plugin
: 'com.android.application'
android
{
compileSdkVersion
28
defaultConfig
{
applicationId
"com.example.myapplication"
minSdkVersion
20
targetSdkVersion
28
versionCode
1
versionName
"1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes
{
release
{
minifyEnabled
false
proguardFiles
getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions
{
sourceCompatibility
1.8
targetCompatibility
1.8
}
}
把下边代码添加到我们的app的下的gradle文件中
compileOptions
{
sourceCompatibility
1.8
targetCompatibility
1.8
}