{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/1256","repository_url":"https://api.github.com/repos/ionic-team/ionic-cli","labels_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/1256/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/1256/comments","events_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/1256/events","html_url":"https://github.com/ionic-team/ionic-cli/issues/1256","id":170437212,"number":1256,"title":"Error build Android: Execution failed for task ':transformClassesWithDexForDebug'.","user":{"login":"jgw96","id":8823093,"avatar_url":"https://avatars0.githubusercontent.com/u/8823093?v=3","gravatar_id":"","url":"https://api.github.com/users/jgw96","html_url":"https://github.com/jgw96","followers_url":"https://api.github.com/users/jgw96/followers","following_url":"https://api.github.com/users/jgw96/following{/other_user}","gists_url":"https://api.github.com/users/jgw96/gists{/gist_id}","starred_url":"https://api.github.com/users/jgw96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgw96/subscriptions","organizations_url":"https://api.github.com/users/jgw96/orgs","repos_url":"https://api.github.com/users/jgw96/repos","events_url":"https://api.github.com/users/jgw96/events{/privacy}","received_events_url":"https://api.github.com/users/jgw96/received_events","type":"User","site_admin":false},"labels":[{"id":324713942,"url":"https://api.github.com/repos/ionic-team/ionic-cli/labels/v2","name":"v2","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-08-10T14:52:42Z","updated_at":"2017-06-28T12:30:31Z","closed_at":"2017-06-13T16:07:52Z","body":"_From @jpagand on August 10, 2016 6:5_\n\nJust trying to build on android the ionic 2 boilerplate app \n\nHere is the build log:\n\n```\n$ ionic build android --info\n\nRunning 'build:before' gulp task before build\n[07:58:52] Starting 'clean'...\n[07:58:52] Finished 'clean' after 36 ms\n[07:58:52] Starting 'build'...\n[07:58:52] Starting 'sass'...\n[07:58:52] Starting 'html'...\n[07:58:52] Starting 'fonts'...\n[07:58:52] Starting 'scripts'...\n[07:58:52] Finished 'html' after 58 ms\n[07:58:52] Finished 'scripts' after 87 ms\n[07:58:52] Finished 'fonts' after 98 ms\n[07:58:53] Finished 'sass' after 941 ms\n[07:59:02] Finished 'build' after 10 s\n[07:59:02] Starting 'build:before'...\n[07:59:02] Finished 'build:before' after 9.47 μs\n\nRunning command: \"c:\\Program Files\\nodejs\\node.exe\" c:\\Users\\***\\ionic2\n\\hooks\\after_prepare\\010_add_platform_class.js c:/Users/***/ionic2\n\n\nadd to body class: platform-android\n\nANDROID_HOME=C:\\Users\\***\\AppData\\Local\\Android\\sdk\n\nJAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_21\n\nIncremental java compilation is an incubating feature.\n\n\n:preBuild\n UP-TO-DATE\n:preDebugBuild UP-TO-DATE\n\n:checkDebugManifest\n\n:CordovaLib:preBuild\n UP-TO-DATE\n\n\n:CordovaLib:preDebugBuild\n UP-TO-DATE\n:CordovaLib:compileDebugNdk\nUP-TO-DATE\n:CordovaLib:compileLint\n\n:CordovaLib:copyDebugLint\n UP-TO-DATE\n:CordovaLib:mergeDebugProguardFiles\n UP-TO-DATE\n\n:CordovaLib:packageDebugRenderscript\n UP-TO-DATE\n\n:CordovaLib:checkDebugManifest\n\n\n:CordovaLib:prepareDebugDependencies\n\n\n:CordovaLib:compileDebugRenderscript\n UP-TO-DATE\n\n:CordovaLib:generateDebugResValues\n UP-TO-DATE\n\n\n:CordovaLib:generateDebugResources UP-TO-DATE\n\n:CordovaLib:packageDebugResources\n UP-TO-DATE\n\n:CordovaLib:compileDebugAidl\n\nUP-TO-DATE\n:CordovaLib:generateDebugBuildConfig\n UP-TO-DATE\n\n:CordovaLib:mergeDebugShaders\n UP-TO-DATE\n\n:CordovaLib:compileDebugShaders\n UP-TO-DATE\n\n:CordovaLib:generateDebugAssets\n\nUP-TO-DATE\n\n:CordovaLib:mergeDebugAssets\n UP-TO-DATE\n\n:CordovaLib:processDebugManifest\n UP-TO-DATE\n\n\n:CordovaLib:processDebugResources\n UP-TO-DATE\n:CordovaLib:generateDebugSources UP-TO-DATE\n:CordovaLib:incrementalDebugJavaCompilationSafeguard\n\nUP-TO-DATE\n:CordovaLib:compileDebugJavaWithJavac\n\nUP-TO-DATE\n:CordovaLib:processDebugJavaRes\n UP-TO-DATE\n\n:CordovaLib:transformResourcesWithMergeJavaResForDebug\n UP-TO-DATE\n\n:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug\n UP-TO-DATE\n\n:CordovaLib:mergeDebugJniLibFolders\n UP-TO-DATE\n\n:CordovaLib:transformNative_libsWithMergeJniLibsForDebug\n UP-TO-DATE\n\n:CordovaLib:transformNative_libsWithSyncJniLibsForDebug\n UP-TO-DATE\n\n:CordovaLib:bundleDebug\n\nUP-TO-DATE\n\n:prepareAndroidCordovaLibUnspecifiedDebugLibrary\n UP-TO-DATE\n\n:preReleaseBuild\nUP-TO-DATE\n:CordovaLib:preReleaseBuild\n UP-TO-DATE\n\n:CordovaLib:compileReleaseNdk\n UP-TO-DATE\n\n\n:CordovaLib:copyReleaseLint\n UP-TO-DATE\n\n:CordovaLib:mergeReleaseProguardFiles\n\n\n:CordovaLib:packageReleaseRenderscript\n\nUP-TO-DATE\n:CordovaLib:checkReleaseManifest\n\n\n:CordovaLib:prepareReleaseDependencies\n\n\n:CordovaLib:compileReleaseRenderscript\n\n:CordovaLib:generateReleaseResValues\n\n\n:CordovaLib:generateReleaseResources\n:CordovaLib:packageReleaseResources\n\n\n:CordovaLib:compileReleaseAidl\n\n\n:CordovaLib:generateReleaseBuildConfig\n\n\n:CordovaLib:mergeReleaseShaders\n\n\n:CordovaLib:compileReleaseShaders\n\n\n:CordovaLib:generateReleaseAssets\n:CordovaLib:mergeReleaseAssets\n\n\n:CordovaLib:processReleaseManifest\n\n\n:CordovaLib:processReleaseResources\n\n\n:CordovaLib:generateReleaseSources\n:CordovaLib:incrementalReleaseJavaCompilationSafeguard\n\n\n:CordovaLib:compileReleaseJavaWithJavac\n\n\n:CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have\nchanged, no previous execution, etc.).\n\nNote: Some input files use or override a deprecated API.\n\nNote: Recompile with -Xlint:deprecation for details.\n\n:CordovaLib:processReleaseJavaRes\n\nUP-TO-DATE\n:CordovaLib:transformResourcesWithMergeJavaResForRelease\n\n\n:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease\n\n\n:CordovaLib:mergeReleaseJniLibFolders\n\n\n:CordovaLib:transformNative_libsWithMergeJniLibsForRelease\n\n\n:CordovaLib:transformNative_libsWithSyncJniLibsForRelease\n\n\n:CordovaLib:bundleRelease\n\n\n:prepareComAndroidSupportMultidex101Library\n\n\n:prepareDebugDependencies\n\n\n:compileDebugAidl\n UP-TO-DATE\n\n:compileDebugRenderscript\n UP-TO-DATE\n\n:generateDebugBuildConfig\n\nUP-TO-DATE\n:mergeDebugShaders\n UP-TO-DATE\n\n:compileDebugShaders\n UP-TO-DATE\n\n:generateDebugAssets\n UP-TO-DATE\n\n:mergeDebugAssets\n UP-TO-DATE\n\n:generateDebugResValues\n UP-TO-DATE\n:generateDebugResources UP-TO-DATE\n\n:mergeDebugResources\n UP-TO-DATE\n\n:processDebugManifest\n\n\n:processDebugResources\n\nUP-TO-DATE\n:generateDebugSources UP-TO-DATE\n\n:incrementalDebugJavaCompilationSafeguard\n UP-TO-DATE\n\n:compileDebugJavaWithJavac\n\nNone of the classes needs to be compiled! Analysis took 0.004 secs.\n\n\n:compileDebugNdk\n UP-TO-DATE\n\n:compileDebugSources\n\n\n:prePackageMarkerForDebug\n\n\n:transformClassesWithJarMergingForDebug\n\n\n:collectDebugMultiDexComponents\n\n\n:transformClassesWithMultidexlistForDebug\n\nProGuard, version 5.2.1\n\n\nReading program jar [C:\\Users\\***\\ionic2\\platforms\\android\\build\\inter\nmediates\\transforms\\jarMerging\\debug\\jars\\1\\1f\\combined.jar]\n\nReading library jar [C:\\Users\\***\\AppData\\Local\\Android\\sdk\\build-tools\\24.0\n.1\\lib\\shrinkedAndroid.jar]\n\n\nPreparing output jar [C:\\Users\\***\\ionic2\\platforms\\android\\build\\inte\nrmediates\\multi-dex\\debug\\componentClasses.jar]\n\n  Copying resources from program jar [C:\\Users\\***\\ionic2\\platforms\\an\ndroid\\build\\intermediates\\transforms\\jarMerging\\debug\\jars\\1\\1f\\combined.jar]\n\n:transformClassesWithMultidexlistForDebug\nFAILED\n\n\n\nFAILURE: Build failed with an exception.\n\n* What went wrong:\nExecution failed for task ':transformClassesWithMultidexlistForDebug'.\n\n> com.android.build.api.transform.TransformException: com.android.ide.common.pro\ncess.ProcessException: org.gradle.process.internal.ExecException: Process 'comma\nnd 'C:\\Program Files\\Java\\jdk1.7.0_21\\bin\\java.exe'' finished with non-zero exit\n value 1\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug\n\nBUILD FAILED\n\nTotal time: 2.937 secs\n\n option to get more log output.\n\nError: cmd: Command failed with exit code 1 Error output:\nNote: Some input files use or override a deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\n\nFAILURE: Build failed with an exception.\n\n* What went wrong:\nExecution failed for task ':transformClassesWithMultidexlistForDebug'.\n> com.android.build.api.transform.TransformException: com.android.ide.common.pro\ncess.ProcessException: org.gradle.process.internal.ExecException: Process 'comma\nnd 'C:\\Program Files\\Java\\jdk1.7.0_21\\bin\\java.exe'' finished with non-zero exit\n value 1\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug\noption to get more log output.\n\n```\n\nI tried to add \n\n```\ndefaultConfig {     \n  multiDexEnabled true\n}\n```\n\nand \n\n```\ndexOptions {\n  incremental = true;\n  preDexLibraries = false\n  javaMaxHeapSize \"2g\" \n}\n```\n\nBut the same error persists  \n\n`ionic info`:\n\n```\nCordova CLI: 6.3.0\nGulp version:  CLI version 3.9.1\nGulp local:   Local version 3.9.1\nIonic Framework Version: 2.0.0-beta.11\nIonic CLI Version: 2.0.0-beta.36\nIonic App Lib Version: 2.0.0-beta.19\nOS: Windows 7 SP1\nNode Version: v0.12.15\n```\n\n_Copied from original issue: driftyco/ionic#7634_\n"},"comment":{"url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/comments/311645431","html_url":"https://github.com/ionic-team/ionic-cli/issues/1256#issuecomment-311645431","issue_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/1256","id":311645431,"user":{"login":"mtrl","id":620230,"avatar_url":"https://avatars2.githubusercontent.com/u/620230?v=3","gravatar_id":"","url":"https://api.github.com/users/mtrl","html_url":"https://github.com/mtrl","followers_url":"https://api.github.com/users/mtrl/followers","following_url":"https://api.github.com/users/mtrl/following{/other_user}","gists_url":"https://api.github.com/users/mtrl/gists{/gist_id}","starred_url":"https://api.github.com/users/mtrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtrl/subscriptions","organizations_url":"https://api.github.com/users/mtrl/orgs","repos_url":"https://api.github.com/users/mtrl/repos","events_url":"https://api.github.com/users/mtrl/events{/privacy}","received_events_url":"https://api.github.com/users/mtrl/received_events","type":"User","site_admin":false},"created_at":"2017-06-28T12:30:31Z","updated_at":"2017-06-28T12:30:31Z","body":"@dwieeb @ccontreras Same for me. Thanks guys 👍 "}}
{"actor":{"display_login":"mtrl"}}