{"action":"created","issue":{"url":"https://api.github.com/repos/pfn/android-sdk-plugin/issues/189","labels_url":"https://api.github.com/repos/pfn/android-sdk-plugin/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/pfn/android-sdk-plugin/issues/189/comments","events_url":"https://api.github.com/repos/pfn/android-sdk-plugin/issues/189/events","html_url":"https://github.com/pfn/android-sdk-plugin/issues/189","id":95385005,"number":189,"title":"neverending dex step","user":{"login":"agapep","id":5947677,"avatar_url":"https://avatars.githubusercontent.com/u/5947677?v=3","gravatar_id":"","url":"https://api.github.com/users/agapep","html_url":"https://github.com/agapep","followers_url":"https://api.github.com/users/agapep/followers","following_url":"https://api.github.com/users/agapep/following{/other_user}","gists_url":"https://api.github.com/users/agapep/gists{/gist_id}","starred_url":"https://api.github.com/users/agapep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agapep/subscriptions","organizations_url":"https://api.github.com/users/agapep/orgs","repos_url":"https://api.github.com/users/agapep/repos","events_url":"https://api.github.com/users/agapep/events{/privacy}","received_events_url":"https://api.github.com/users/agapep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-16T08:58:50Z","updated_at":"2015-07-20T01:41:51Z","closed_at":null,"body":"First build after clean is OK. But when try build it again it never stop dexing process. \r\nI see it in every version **after 1.3.20** (i stock in this version of plugin).\r\n \r\nHere is log from version **1.3.21** (but 1.4.5 behaves in the same way):\r\n--------------------------------------------------------\r\n\r\nfirst time:\r\n```\r\n...\r\n[info] Creating proguard cache: proguard-cache-62dcf82c5633075b601629ea398c13d6deed3a2b.jar\r\n[info] Generating dex, incremental=false, multiDex=false\r\n[info] Packaged: app-debug-unaligned.apk (3,78MB)\r\n[info] Debug package does not need signing: app-debug-unaligned.apk\r\n...\r\n```\r\nsecond time:\r\n```\r\n...\r\n[warn] UPDATE: A newer android-sdk-plugin is available: 1.4.5, currently running: 1.3.21\r\n[info] [debug] cache hit, skipping proguard!\r\n[info] Generating dex, incremental=false, multiDex=false\r\nUNEXPECTED TOP-LEVEL ERROR:\r\njava.lang.OutOfMemoryError: Java heap space\r\n\tat java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:68)\r\n\tat java.lang.StringBuilder.<init>(StringBuilder.java:89)\r\n\tat com.android.dx.rop.type.Prototype.withFirstParameter(Prototype.java:370)\r\n\tat com.android.dx.rop.code.Rops.ropFor(Rops.java:1231)\r\n\tat com.android.dx.cf.code.RopperMachine.run(RopperMachine.java:490)\r\n\tat com.android.dx.cf.code.Simulator$SimVisitor.visitConstant(Simulator.java:691)\r\n\tat com.android.dx.cf.code.BytecodeArray.parseInstruction(BytecodeArray.java:772)\r\n\tat com.android.dx.cf.code.Simulator.simulate(Simulator.java:94)\r\n\tat com.android.dx.cf.code.Ropper.processBlock(Ropper.java:787)\r\n\tat com.android.dx.cf.code.Ropper.doit(Ropper.java:742)\r\n\tat com.android.dx.cf.code.Ropper.convert(Ropper.java:349)\r\n\tat com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:280)\r\n\tat com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:137)\r\n\tat com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:93)\r\n\tat com.android.dx.command.dexer.Main.processClass(Main.java:729)\r\n\tat com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)\r\n\tat com.android.dx.command.dexer.Main.access$300(Main.java:83)\r\n\tat com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)\r\n\tat com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)\r\n\tat com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)\r\n\tat com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)\r\n\tat com.android.dx.command.dexer.Main.processOne(Main.java:632)\r\n\tat com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)\r\n\tat com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)\r\n\tat com.android.dx.command.dexer.Main.run(Main.java:246)\r\n\tat com.android.dx.command.dexer.Main.main(Main.java:215)\r\n\tat com.android.dx.command.Main.main(Main.java:106)\r\n```\r\nin 1.3.20 it just work:\r\n----------------------------------------\r\nfirst time:\r\n```\r\n...\r\n[info] Creating proguard cache: proguard-cache-62dcf82c5633075b601629ea398c13d6deed3a2b.jar\r\n[info] Generating dex, incremental=false, multiDex=false\r\n[info] Packaged: app-debug-unaligned.apk (3,78MB)\r\n[info] Debug package does not need signing: app-debug-unaligned.apk\r\n[info] zipaligned: app-debug.apk\r\n...\r\n```\r\nsecond time:\r\n```\r\n...\r\n[warn] UPDATE: A newer android-sdk-plugin is available: 1.4.5, currently running: 1.3.20\r\n[info] Compiling 1 Scala source to **/android/code/target/android-bin/classes...\r\n[info] Packaging **/android/code/target/android-bin/classes.jar ...\r\n[info] Done packaging.\r\n[info] Finding dependency references for: classes.jar\r\n[info] [debug] cache hit, skipping proguard!\r\n[info] Generating dex, incremental=true, multiDex=false\r\nResult compacted from 9331,0KiB to 7113,2KiB to save 2217,8KiB\r\nMerged dex A (8 defs/13,7KiB) with dex B (5971 defs/7104,4KiB). Result is 5971 defs/7113,2KiB. Took 1,8s\r\n[info] Packaged: app-debug-unaligned.apk (3,80MB)\r\n[info] Debug package does not need signing: app-debug-unaligned.apk\r\n...\r\n```\r\n\r\nmaybe problem is in my build.sbt (I have no idea where it could be) \r\nIt looks something like this:\r\n```scala\r\nandroid.Plugin.androidBuild\r\nname := \"appname\"\r\nversionCode := Some(2)\r\nversion := \"0.0.2\"\r\nscalaVersion := \"2.11.6\"\r\nplatformTarget in Android := \"android-21\"\r\nbuildToolsVersion in Android := Some(\"22.1.2\")\r\ntargetSdkVersion in Android := \"21\"\r\nminSdkVersion in Android := \"14\"\r\ndebugIncludesTests in Android := false\r\ninstrumentTestRunner in Android := \"android.support.test.runner.AndroidJUnitRunner\"\r\nresolvers ++= Seq(\r\n  \"jcenter\" at \"http://jcenter.bintray.com\",\r\n  \"RoboTest releases\" at \"https://raw.github.com/zbsz/mvn-repo/master/releases/\"\r\n)\r\nlibraryDependencies ++= Seq (\r\n  \"io.reactivex\" %\t\"rxandroid\" % \"0.22.0\",\r\n  \"io.reactivex\" %%\t\"rxscala\" % \"0.22.0\",\r\n  aar(\"org.macroid\" %% \"macroid\" % \"2.0.0-M4\"),\r\n  aar(\"org.macroid\" %% \"macroid-viewable\" % \"2.0.0-M4\")\r\n)\r\nlibraryDependencies ++= Seq (\r\n  \"me.dm7.barcodescanner\" % \"zxing\" % \"1.4\",\r\n  \"se.emilsjolander\" % \"StickyScrollViewItems\" % \"1.1.0\",\r\n  \"com.github.nicolasjafelle\" % \"paginglistview\" % \"1.2\",\r\n  \"com.mcxiaoke.volley\" % \"library\" % \"1.0.9\",\r\n  \"com.fasterxml.jackson.core\" % \"jackson-core\" % \"2.4.0\",\r\n  \"com.fasterxml.jackson.core\" % \"jackson-annotations\" % \"2.4.0\",\r\n  \"com.fasterxml.jackson.core\" % \"jackson-databind\" % \"2.4.0\",\r\n  \"org.androidannotations\" % \"androidannotations\" % \"3.3.1\" % \"provided\",\r\n  \"org.androidannotations\" % \"androidannotations-api\" % \"3.3.1\",\r\n  aar(\"com.flaviofaria\" % \"kenburnsview\" % \"1.0.6\")\r\n)\r\nlibraryDependencies ++= Seq (\r\n  aar(\"com.android.support\" % \"support-v4\" % \"21.0.0\"),\r\n  aar(\"com.android.support\" % \"recyclerview-v7\" % \"21.0.0\"),\r\n  aar(\"com.android.support\" % \"appcompat-v7\" % \"21.0.0\"),\r\n  aar(\"com.google.maps.android\" % \"android-maps-utils\" % \"0.3.4\"),\r\n  aar(\"com.google.android.gms\" % \"play-services\" % \"6.5.87\"),\r\n  \"com.android.support.test.espresso\" % \"espresso-core\" % \"2.0\",\r\n  \"com.android.support.test\" % \"testing-support-lib\" % \"0.1\",\r\n  \"junit\" % \"junit\" % \"4.11\" % \"test\",\r\n  \"org.scalatest\" %% \"scalatest\" % \"2.2.3\" % \"test\",\r\n  \"com.geteit\" %% \"robotest\" % \"0.7\" % \"test\",\r\n  \"org.robolectric\" % \"android-all\" % \"5.0.0_r2-robolectric-0\" % \"test\"\r\n)\r\nexportJars in Test := false\r\nfork in Test := false\r\nparallelExecution in Test := false\r\nuseProguardInDebug in Android := true\r\nuseProguard in Android := true\r\nretrolambdaEnable in Android := false\r\nproguardConfig in Android ++= IO.readLines( file(\"proguard.txt\") )\r\ndexMaxHeap in Android := \"1104m\"\r\ntypedResources in Android := false```\r\n"},"comment":{"url":"https://api.github.com/repos/pfn/android-sdk-plugin/issues/comments/122727257","html_url":"https://github.com/pfn/android-sdk-plugin/issues/189#issuecomment-122727257","issue_url":"https://api.github.com/repos/pfn/android-sdk-plugin/issues/189","id":122727257,"user":{"login":"nightscape","id":35170,"avatar_url":"https://avatars.githubusercontent.com/u/35170?v=3","gravatar_id":"","url":"https://api.github.com/users/nightscape","html_url":"https://github.com/nightscape","followers_url":"https://api.github.com/users/nightscape/followers","following_url":"https://api.github.com/users/nightscape/following{/other_user}","gists_url":"https://api.github.com/users/nightscape/gists{/gist_id}","starred_url":"https://api.github.com/users/nightscape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightscape/subscriptions","organizations_url":"https://api.github.com/users/nightscape/orgs","repos_url":"https://api.github.com/users/nightscape/repos","events_url":"https://api.github.com/users/nightscape/events{/privacy}","received_events_url":"https://api.github.com/users/nightscape/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T01:41:51Z","updated_at":"2015-07-20T01:41:51Z","body":"Ok, my bad, should have RTFM more thoroughly...\r\nAfter using the correct setting and `proguardCache`ing the packages with the highest number of methods everything works as expected.\r\nThanks Perry!"}}