MPAndroidChart에 대한 자습서를 작성하고 있었는데 에뮬레이터에서 잘 작동했습니다. 나는 APK를 빌드 할 때, 나는 내 build.gradle 스크립트 두 가지 오류를 ...APA 빌드 중 MPAndroidChart Android Studio 오류
이이
이"Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/github/mikephil/charting/BuildConfig;"
"Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_91\bin\java.exe'' finished with non-zero exit value 2"
누군가가 나를 도울 수 ...있다 있어
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "24.0.1"
defaultConfig {
applicationId "com.example.myname.lesson03"
minSdkVersion 7
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile ('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:24.1.0'
compile 'com.github.PhilJay:MPAndroidChart:v2.2.4'
testCompile 'junit:junit:4.12'
}
깨끗한 프로젝트를하고 제안 주석으로 그 라인을/제거합니다. . 그리고 그 일하는 것. .. 감사하는 남자. –