Information:Gradle tasks [:app:assembleDebug]
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE
:app:prepareComAndroidSupportCardviewV72340Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2340Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE
:app:prepareComCouchbaseLiteCouchbaseLiteAndroid121Library UP-TO-DATE
:app:prepareComCouchbaseLiteCouchbaseLiteAndroidSqliteDefault121Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAnalytics920Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl920Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBase920Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBasement920Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesTasks920Library UP-TO-DATE
:app:prepareComJakewhartonButterknife810Library UP-TO-DATE
:app:prepareComMiguelcatalanMaterialsearchview140Library UP-TO-DATE
:app:preparePlTajchertWaitingdots020Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources
:app:prePackageMarkerForDebug
:app:transformClassesWithDexForDebug
To run dex in process, the Gradle daemon needs a larger heap.
It currently has approximately 910 MB.
For faster builds, increase the maximum heap size for the Gradle daemon to more than 2048 MB.
To do this set org.gradle.jvmargs=-Xmx2048M in the project gradle.properties.
For more information see https://docs.gradle.org/current/userguide/build_environment.html
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
:app:transformClassesWithDexForDebug FAILED
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_102\bin\java.exe'' finished with non-zero exit value 2
Information:BUILD FAILED
Information:Total time: 2 mins 52.839 secs
Information:2 errors
Information:0 warnings
Information:See complete output in console
Q
오류 :
0
A
답변
0
당신은 활성화 java.lang.NoClassDefFoundError: okhttp3.internal.Util
의 단계에 따라 "참 multiDexEnabled"대부분의 아마 당신은 응용 프로그램 클래스에 설치되지 않습니다.
이
는 응용 프로그램public class YouApplication extends Application {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
}
을
android {
compileSdkVersion 22
buildToolsVersion "23.0.0"
defaultConfig {
minSdkVersion 14 //lower than 14 doesn't support multidex
targetSdkVersion 22
// Enabling multidex support.
multiDexEnabled true //You have already did this
}
}
dependencies {
compile 'com.android.support:multidex:1.0.1' // add this in dependencies
}
을 마지막으로 확장하는 방법입니다 그리고 이것은 좋은 가이드 https://developer.android.com/studio/build/multidex.html
1
당신은 당신의 Gradle을에서 지원 라이브러리의 여러 선언이 .짓다. Here은 문제의 원인을 파악하는 좋은 가이드입니다.
android {
dexOptions {
preDexLibraries = false
}
}
:
또한이 쉽게 수정을 시도 할 수 있습니다
관련 문제
- 1. 점점 오류 형식 오류 : 오류 # 1009 :
- 2. 구문 분석 오류 : 구문 오류, 공백 오류
- 3. 오류 : 오류 C2061 : 구문 오류 : 식별자 'CAlerteModel'
- 4. py2exe 오류 : "atexit._run_exitfuncs의 오류 : sys.exitfunc의 오류 :"
- 5. sslobj.do_handshake 오류 및 "오류 : [errno를 0] 오류"
- 6. 셀레늄 오류 : 형식 오류 : 형식 오류 : 죽은
- 7. SQL 오류 - 오류 42X01 : 구문 오류 : "KEY"
- 8. 캐주얼 오류 "오류/생성"오류 코드 17
- 9. C 오류 TLS 오류
- 10. PHP 오류 : 치명적인 오류 :
- 11. 공간 부족 오류 오류
- 12. 오류 C2146 : 구문 오류
- 13. C에서 Seg 오류 오류
- 14. SQL 오류 : '치명적인 오류'
- 15. 오류 PRJ0003 : 'cl.exe'생성 오류
- 16. 트리거 오류, 조건에서 오류
- 17. DoReferenceTransaction 오류 - 오류 11458
- 18. 런타임 오류, 분할 오류
- 19. 구문 오류 오류
- 20. Nodejs 코드 오류 (오류)
- 21. 오류 메시지 오류
- 22. 생성자 오류 .. (이상한 오류)
- 23. 오류 UnboundLocalError : 오류 UnboundLocalError
- 24. 세그먼트 오류 오류
- 25. 오류 안드로이드 : ActivityThread.performLaunchActivity 오류
- 26. libpng 오류 : 읽기 오류
- 27. C++ 오류 : "오류 : 전화
- 28. 오류 500 (치명적 오류)
- 29. 오류 페이지는 오류
- 30. JS 오류 형식 오류