出现错误,无法执行任务':app:transformClassesWithDesugarForDebug'

时间:2018-06-25 07:24:13

标签: android

在构建android项目时出现错误。这是我面临的完整错误日志

登录- 错误:任务':app:transformClassesWithDesugarForDebug'的执行失败。

  

com.android.build.api.transform.TransformException:java.lang.RuntimeException:java.lang.RuntimeException:com.android.ide.common.process.ProcessException:使用主类com.google执行Java进程时出错.devtools.build.android.desugar.Desugar与参数{-输入F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 17.jar-输出F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ desugar \ debug \ 18.jar-输入F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 11.jar-输出F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ desugar \ debug \ 12.jar-输入F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 16.jar-输出F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ desugar \ debug \ 17.jar-输入F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 8.jar-输出F: \地图人le \ MapIndoorProject \ app \ build \ intermediates \ transforms \ desugar \ debug \ 9.jar-输入F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 6.jar-输出F: \ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ desugar \ debug \ 7.jar-输入F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 7.jar-输出F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ desugar \ debug \ 8.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ classes \ debug --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 0.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 1.jar --classpath_entry F: \ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 2.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ de bug \ 3.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 4.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 5.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 6.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 7.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 8.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \中间体\变换\ stackFramesFixer \调试\ 9.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 10.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 11.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 12.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 13.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 14.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 15.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \中间体\变换\ stackFramesFixer \调试\ 16.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 17.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 18.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 19.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 20.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 21.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 22.jar --classpath_entry F:\ Map people \ MapIndoorProject \ app \ build \ intermediates \ transforms \ stackFramesFixer \ debug \ 23.jar --bootclasspath_entry C:\ Users \ Lenovo \ AppData \ Local \ Android \ Sdk \ platforms \ android-27 \ android.jar --bootclasspath_entry C:\ Users \ Lenovo \ AppData \ Local \ Android \ Sdk \ platforms \ android-27 \ optional \ org.apache.http.legacy.jar --bootclasspath_entry C:\ Program Files \ Android \ Android Studio1 \ jre \ jre \ lib \ resources.jar- -bootclasspath_entry C:\ Program Files \ Android \ Android Studio1 \ jre \ jre \ lib \ rt.jar --bootclasspath_entry C:\ Program Files \ Android \ Android Studio1 \ jre \ jre \ lib \ jsse.jar --bootclasspath_entry C: \ Program Files \ Android \ Android Studio1 \ jre \ jre \ lib \ jce.jar --bootclasspath_entry C:\ Program Files \ Android \ Android Studio1 \ jl \ jre \ lib \ charsets.jar --min_sdk_version 21 --nodesugar_try_with_resources_if_needed-脱糖_ try_with_resources_omit_runtime_classes}

这是我的build.gradle文件应用程序模块-

buildscript {
repositories {
    maven { url 'https://maven.fabric.io/public' }
}

dependencies {
    classpath "io.fabric.tools:gradle:1.25.2"
}}



apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android 
  {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
    applicationId "indoor.map.com.mapindoorproject"
    minSdkVersion 21
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
lintOptions {
    disable "ResourceType"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }

    debug {
        minifyEnabled false
        shrinkResources false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

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


dependencies
{
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
compile 'com.android.support:support-annotations:27.1.1'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.mapspeople.mapsindoors:mapsindoorssdk:2.0.0@aar'
compile 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'}

0 个答案:

没有答案