안녕하세요 저는 Android에서 android-studio를 사용하여 Android로 개발하면서 새로운 경험이 있습니다. 작업 ': app : dexDebug'실행에 실패했습니다. 오류 코드 : 1
은 내가 onclick을 추가하고이 오류와 함께 종료 :FAILURE: Build failed with an exception.
* What went wrong:Execution failed for task ':app:dexDebug'.
com.android.ide.common.internal.LoggedErrorException: Failed to run command: /Users/home/Library/Android/sdk/build-tools/21.1.2/dx --dex --no-optimize --output /Users/home/Documents/****/Android/MyApp/app/build/intermediates/dex/debug --input-list=/Users/home/Documents/****/Android/MyApp/app/build/intermediates/tmp/dex/debug/inputList.txt Error Code: 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
좀 의존성, 다시 설치 및 업데이트 모든하지만 여전히 나던 작업을 제거했습니다.
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "myapp.com.example.home.myapplication"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
// compile 'com.android.support:support-annotations:21.0.+'
}