나는 다음과 같은 출력을 얻을 내 아주 간단한 안드로이드 응용 프로그램을 실행하려고하면 : 나는 원래 multidex를 사용되지 않은안드로이드 - 실행은 작업 실패 ': 응용 프로그램 : transformClassesWithMultidexlistForDebug'을
Information:Gradle: Executing tasks: [:app:assembleDebug]
Information:Kotlin: Kotlin JPS plugin is disabled Information:6/2/16, 11:25 AM - Compilation completed with 1 error and 0 warnings in 6s 706ms
Error:Gradle: 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 '/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
을하고 난을 얻고 있었다 표준 덱스와 비슷한 오류. 다음은 다중 출력을 사용하지 않고 얻은 원래 출력입니다.
Information:Gradle: Executing tasks: [:app:assembleDebug]
Information:Kotlin: Kotlin JPS plugin is disabled Information:6/2/16, 11:28 AM - Compilation completed with 1 error and 0 warnings in 7s 624ms
Error:Gradle: Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
생각할 수있는 모든 솔루션을 시도했지만 아무런 효과가없는 것 같습니다. 당신이 볼 수있는 아무 소용하고, 댓글을 주석 내가 라인의 다양한 조합으로 실행 시도
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "24.0.0 rc4"
defaultConfig {
applicationId "com.example.XXX.testapplication"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
// debug {
// minifyEnabled true
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// }
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
incremental = true;
javaMaxHeapSize "4g"
//preDexLibraries = false
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
}
:
여기 내 응용 프로그램 수준 build.gradle입니다.
"lib"폴더에 파일이 없습니다. 여기
내 높은 수준의 build.gradle입니다 :// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
그리고 여기 내 AndroidManifest.xml에 있습니다 :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.XXX.testapplication">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:name="android.support.multidex.MultiDexApplication"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
오류뿐 아니라 전체 gradle 출력을 표시 할 수 있습니까? –
어떻게 할 수 있습니까? 죄송합니다.이 기술을 처음 접했습니다. – Infamous911
글쎄, 그 오류를 어딘가에서 복사하셨습니까? 위에 나온 출력물로 질문을 편집 할 수도 있습니다. –