错误:任务':app:transformClassesWithDexBuilderForDebug'的执行失败。

时间:2017-10-04 16:55:17

标签: android android-studio simexception

我刚刚添加了库。发生了一些问题: 这是我的错误:

Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.> com.android.build.api.transform.TransformException: org.gradle.tooling.BuildException: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)

这是build.gradle(模块应用程序)中的依赖项:

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
implementation files('libs/byte-buddy-1.7.5.jar')
implementation files('libs/client-combined-3.6.0.jar')
implementation files('libs/commons-codec-1.10.jar')
implementation files('libs/commons-exec-1.3.jar')
implementation files('libs/commons-logging-1.2.jar')
implementation files('libs/gson-2.8.0.jar')
implementation files('libs/guava-23.0.jar')
implementation files('libs/httpclient-4.5.3.jar')
implementation files('libs/httpcore-4.4.6.jar')
implementation files('libs/java-client-5.0.4.jar')
implementation files('libs/jna-4.1.0.jar')
implementation files('libs/jna-platform-4.1.0.jar')}

0 个答案:

没有答案