2016-07-05 11 views
2

私は過去3時間を同じような質問で探しましたが、私はすべてを試したような気がします。私は、エミュレータを介してアプリを実行しようとしていますが、それは'transformClassesWithMultidexlistForDebug'エラーを返し続けます。プログラムはエラーなしでビルドされます。エミュレータを介して実行すると、問題が発生します。エミュレータで実行しようとすると、Transform Exceptionエラーが返されます。

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion "24.0.0" 

    defaultConfig { 
     applicationId "com.moa.gsrental.rentalinventory" 
     minSdkVersion 15 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
     multiDexEnabled true 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:+' 
    compile 'com.android.support:multidex:1.0.0' 

} 

エラーメッセージ:

Preparing output jar [C:\Users\Omar\AndroidStudioProjects\Rentalinventory\app\build\intermediates\multi-dex\debug\componentClasses.jar] 
Copying resources from program jar [C:\Users\Omar\AndroidStudioProjects\Rentalinventory\app\build\intermediates\transforms\jarMerging\debug\jars\1\1f\combined.jar] 
:app:transformClassesWithMultidexlistForDebug FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. 
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

BUILD FAILED 

任意の助けをいただければ幸い以下は私のアプリのGradleのと同様に、エラーメッセージがあります!

答えて

0

[OK]私は問題を解決しましたが、私はどう考えていません。私は基本的に、異なるアンドロイドスタジオプロジェクトのサンプルコードを開いて、build.gradleを模倣しました。私の質問を見た皆さん、ありがとう!

関連する問題