OSDN Git Service

Deactivate multi-thread in multi-dex mode
authorBenoit Lamarche <benoitlamarche@google.com>
Tue, 22 Oct 2013 16:57:39 +0000 (18:57 +0200)
committerYohann Roussel <yroussel@google.com>
Tue, 3 Dec 2013 13:00:27 +0000 (13:00 +0000)
It should already have been the case, but it wasn't and it crashed.

Change-Id: Icb461d6e43ef2d113f59038d8c2327f3cfaff86c
(cherry picked from commit cf069ca52f2af9f70fcbeac99443f00401d43b4a)

dx/src/com/android/dx/command/dexer/Main.java

index ab6d2f7..8c77d89 100644 (file)
@@ -1477,8 +1477,9 @@ public class Main {
             }
 
             if (multiDex && numThreads != 1) {
-                System.out.println(NUM_THREADS_OPTION + "is ignored when used with "
+                System.out.println(NUM_THREADS_OPTION + " is ignored when used with "
                     + MULTI_DEX_OPTION);
+                numThreads = 1;
             }
 
             if (multiDex && incremental) {