32 Replies Latest reply on Aug 4, 2017 6:33 AM by antog10602981

    AIR25 - dx tool failed

    Oldes Level 1

      Hi,

      does anybody else have a problem to package android apk-captive-runtime target with AIR25?

       

      On some Window's machines (both 32 and 64 bit) we have nothing telling dx tool failed error while evaluating building command from command line. On the same machine using older AIR it is working fine.

       

      The command and output looks like:

       

      c:\dev\S3-Build>java -jar ..\AIR-Win-SDK\lib\adt.jar -package -target apk-captive-runtime -storetype pkcs12 -keystore ./cert/S3.p12 Build\S3.apk  android.xml Data/* -extdir ane/

      dx tool failed:

       

       

      Build failed!

       

      Is there some special requirement for AIR25?

       

      Thanks,

      David

        • 1. Re: AIR25 - dx tool failed
          shubhendu_mishra Adobe Employee

          Hello David,

           

          Could you please share the JAVA version (build 1.X.X_XXX-XXX) installed on your machine with OS details.

           

           

          Regards,

          Adobe AIR Team

          • 2. Re: AIR25 - dx tool failed
            Oldes Level 1

            For example:

            java version "1.8.0_121"

            Java(TM) SE Runtime Environment (build 1.8.0_121-b13)

            Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)



            Computer Information:

                Manufacturer:  LENOVO

                Model:  20C00045MC

                Form Factor: Laptop

                No Touch Input Detected

               

            Processor Information:

                CPU Vendor:  GenuineIntel

                CPU Family:  0x6

                CPU Model:  0x45

                CPU Stepping:  0x1

                CPU Type:  0x0

                Speed:  2694 Mhz

                4 logical processors

                2 physical processors

                HyperThreading:  Supported

                FCMOV:  Supported

                SSE2:  Supported

                SSE3:  Supported

                SSSE3:  Supported

                SSE4a:  Unsupported

                SSE41:  Supported

                SSE42:  Supported

                AES:  Supported

                AVX:  Supported

                CMPXCHG16B:  Supported

                LAHF/SAHF:  Supported

                PrefetchW:  Supported

               

            Network Information:

                Network Speed: 

               

            Operating System Version:

                Windows 10 (64 bit)

                NTFS:  Supported

                Crypto Provider Codes:  Supported 311 0x0 0x0 0x0

               

            Video Card:

                Driver:  Intel(R) HD Graphics Family

             

             

                DirectX Driver Name:  igdumdim32.dll

                Driver Version:  20.19.15.4444

                DirectX Driver Version:  20.19.15.4444

                Driver Date: 22 Apr 2016

                OpenGL Version: 4.3

                Desktop Color Depth: 32 bits per pixel

                Monitor Refresh Rate: 59 Hz

                DirectX Card: Intel(R) HD Graphics Family

                VendorID:  0x8086

                DeviceID:  0xa16

                Number of Monitors:  1

                Number of Logical Video Cards:  1

                No SLI or Crossfire Detected

                Primary Display Resolution:  1920 x 1080

                Desktop Resolution: 1920 x 1080

                Primary Display Size: 10.87" x 6.14"  (12.48" diag)

                                                        27.6cm x 15.6cm  (31.7cm diag)

                Primary Bus Type Not Detected

                Primary VRAM: 1024 MB

                Supported MSAA Modes:  2x 4x 8x

               

            Sound card:

                Audio device: Speakers (Conexant SmartAudio H

               

            Memory:

                RAM:  8082 Mb

            • 3. Re: AIR25 - dx tool failed
              Anki(AG) Adobe Employee

              Hi,

               

              Thanks so much for the detailed information. Could you please try reinstalling java once on your machine. Please let us know if this resolves your issue.

               

              Thanks,

              Ankit | Adobe AIR Engineering

              • 4. Re: AIR25 - dx tool failed
                Oldes Level 1

                Java Re-installation does not help. Strange is, that on my notebook with same Java version is packaging working fine.

                d.

                • 5. Re: AIR25 - dx tool failed
                  Anki(AG) Adobe Employee

                  This issue is a weird issue and known to us with java version "1.8.0_112". Could you please check all the different JDK and JRE versions installed on your machine.

                  Please follow these steps:

                  1: Uninstall JRE and JDK and then reinstall them.

                  2. Please check environment variables as well.

                   

                  We had faced similar issue which got resolved by following above mentioned steps. Please let us know how it goes.

                   

                  Thanks,

                  Ankit

                  • 6. Re: AIR25 - dx tool failed
                    Oldes Level 1

                    Unfortunately, nothing helps. Also it looks that Oracle is not providing access to older Java versions. I have AIR packaging working on both my work devices with Windows (7 and 10).. the problem is with our external worker, so it is hard to test in more details for me :-/ So far he can use AIR24 which is working without this issue.

                    • 7. Re: AIR25 - dx tool failed
                      fredericb99676169

                      Oldes :

                      You should uninstall JRE version 1.8.121 and install version 1.8.111

                       

                      With 1.8.121 we have the following error when compiling on command line :

                      Unable to load a certificate in this file (our certificate is 1024-RSA)

                       

                      With version 1.8.11 we have no DX tool issue or certificate issue.

                       

                      By the way you guys at Adobe should report that bug about 1024-RSA issue with the latest version of Java JRE (1.8.121)

                      • 8. Re: AIR25 - dx tool failed
                        Rohit_Kumar Adobe Employee

                        Hey,

                         

                        Can you please recreate a certificate and try to use it for packaging? It might solve your problem for JRE 1.8.0_121 version as we are able to successfully package apps on this version.

                         

                        Thanks, 

                        Rohit 

                        Adobe AIR Team

                        • 9. Re: AIR25 - dx tool failed
                          fredericb99676169 Level 1

                          Cannot do this since the certificate is used on existing apps.

                          • 10. Re: AIR25 - dx tool failed
                            warywarcry Level 1

                            I have the same issue. Tried the jre/jdk libraries of 1.8.111 an 1.8.121 but cannot succeed. I cannot change the certiface of my apps since they are already published in play store. Any advice?

                            • 11. Re: AIR25 - dx tool failed
                              giladl36147141 Level 1

                              have the same issue, any one found a work around for this?

                              • 12. Re: AIR25 - dx tool failed
                                Rohit_Kumar Adobe Employee

                                Hey,

                                 

                                We are looking into this, we will keep you updated with the progress. There are two different issues which have been introduced with the java 1.8.0_112 and 1.8.0_121 versions.

                                 

                                1.8.0_112: dx command is failing due to process command execution failure

                                1.8.0_121: RSA-1024 Certificate issue

                                 

                                We are trying to fix these issues from our end.

                                 

                                Thanks,

                                Rohit

                                Adobe AIR Team

                                • 13. Re: AIR25 - dx tool failed
                                  Rohit_Kumar Adobe Employee

                                  Hey warywarcry,

                                  ADT Packaging should work fine with the older versions of Java. Is it possible for you to uninstall all the Java JRE and JDK versions and reinstall Java JRE 1.8.0_111 version?

                                   

                                  Use this link to download older versions of Java 8. You need to create an account to be able to download the files.

                                  Java Archive Downloads - Java SE 8

                                   

                                  Please let us know if it helps.

                                   

                                  Thanks,

                                  Rohit

                                  Adobe AIR Team

                                  • 14. Re: AIR25 - dx tool failed
                                    warywarcry Level 1

                                    Hi Rohit,

                                     

                                    Thanks for your reply. I followed your steps but nothing changed. I am installing the 32 bit version of Java to able to run FlashDevelop. Do you think it is the reason?

                                     

                                    My java version;

                                     

                                    java version "1.8.0_111"

                                    Java(TM) SE Runtime Environment (build 1.8.0_111-b14)

                                    Java HotSpot(TM) Client VM (build 25.111-b14, mixed mode)

                                    • 15. Re: AIR25 - dx tool failed
                                      warywarcry Level 1

                                      The problem is related with the 32 bit version of Java. I installed 64 bit  of JRE 1.8.0_111 and it packaged without problems. I suppose 64 bit JRE 1.8.0_121 will also work fine.

                                      • 16. Re: AIR25 - dx tool failed
                                        subdan

                                        I have the same issue: dx tool failed: Result: 17

                                        After updating to the latest version of AIR SDK 25 I can't package my app. I use Windows 7 x86 and JRE 1.8.111 x86.

                                        • 17. Re: AIR25 - dx tool failed
                                          lucasp35885850 Level 1

                                          I continue with the problem after installing 64 bit of JRE 1.8.0_11. I remember the problem only happens for the builds on android or IOS, Desktop works! I wanted to test the AIR24 SDK version but I can not find it to download, I can only get the AIR25 SDK.

                                          • 18. Re: AIR25 - dx tool failed
                                            shubhendu_mishra Adobe Employee

                                            Hello lucasp,

                                             

                                            You can download the previous Adobe AIR SDKs from Find and download archived versions of Adobe AIR SDK .

                                             

                                            Regards,

                                            Adobe AIR Team

                                            • 19. Re: AIR25 - dx tool failed
                                              swamp222 Level 1

                                              Any progress for this problem? Tried AIR 26 beta same problem.

                                              Also tried multiple java versions both 64bit and 32bit.

                                              *Latest Facebook ANE from Distriqt requires AIR 25+

                                               

                                              (Win 10 64bit, Flash Pro CS6)

                                               

                                              /T

                                              • 20. Re: AIR25 - dx tool failed
                                                Bobby Elroy Law Level 1

                                                Same problem - "dx tool failed" with no further info when targeting Android after updating a project to AIR 25, no problems with AIR 23 (win 10 64bit, FlashDevelop). I (eventually) resolved it by using 64 bit java for packaging android and 32 bit java when targeting iOS - both are java 1.8.0_121

                                                • 21. Re: AIR25 - dx tool failed
                                                  swamp222 Level 1

                                                  After uninstalling Java I can still create apk files from AIR 24 (without Java installed), am I missing something?

                                                   

                                                  *No errors when packaging for iOS for AIR 25

                                                  • 22. Re: AIR25 - dx tool failed
                                                    swamp222 Level 1

                                                    Seems Animate CC fixed the problem for me, high time to abandon CS6 I guess

                                                    • 23. Re: AIR25 - dx tool failed
                                                      Colin Holgate MVP & Adobe Community Professional

                                                      Make sure to keep CS6 installed, it can still do ActionScript 2, and Deco tool, and TLF. You may need to edit an old project some day. But yes, Animate has fixed or improved a lot of things.

                                                      • 24. Re: AIR25 - dx tool failed
                                                        kerrgrant Level 1

                                                        Was having the same problem which i've managed to resolve by changing my 32 bit java environment to:

                                                         

                                                        java version "1.8.0_131"

                                                        Java(TM) SE Runtime Environment (build 1.8.0_131-b11)

                                                        Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

                                                         

                                                        i.e. 64 bit JDK

                                                         

                                                        Also, i'm using AIR SDK v25.

                                                        • 25. Re: AIR25 - dx tool failed
                                                          v1v0c4 Level 1

                                                          I had this same issue.

                                                           

                                                          Fixed it with the following configuration:

                                                           

                                                          - AIR 25

                                                          - Project Properties: AIR Mobile vs 21

                                                           

                                                          - global Java version 1.6 32bits (for FlashDevelop)

                                                          - (the MAGIC) edited the adt.bat file to set the java path to a 1.8 64 bits version like this:

                                                           

                                                               ::@java -jar "%~dp0\..\lib\adt.jar" %*

                                                               "C:\Program Files\Java\jre1.8.0_131\bin\java.exe" -jar "%~dp0\..\lib\adt.jar" %*

                                                           

                                                          Worked for me.

                                                          Hope this will help you.

                                                           

                                                          1 person found this helpful
                                                          • 26. Re: AIR25 - dx tool failed
                                                            Sarah Northway Level 1

                                                            Looks like AIR 25 has brought this issue up again.

                                                             

                                                            I solved it by switching from 32-bit jdk 1.7.0_79 to 64-bit jdk 1.8.0_91 (by setting the PATH var in my batch file where I run ADT).

                                                             

                                                            Sounds like 1.8.0_121 may also be incompatible with AIR 25, according to this thread discussing the same problem. May have something to do with the switchover to 64 bit certificates.

                                                            • 27. Re: AIR25 - dx tool failed
                                                              Elegar Level 1

                                                              AIR 26, same problem. Java version: 1.7.0_80

                                                              • 28. Re: AIR25 - dx tool failed
                                                                Elegar Level 1

                                                                updated java to the latest 1.8 and now it works

                                                                • 29. Re: AIR25 - dx tool failed
                                                                  hbinnnet Level 1

                                                                  I have encountered this problem, I was replaced by 64-bit java can solve this problem, you need to change the system environment variables into 64-bit java, I hope you help!

                                                                  1 person found this helpful
                                                                  • 30. Re: AIR25 - dx tool failed
                                                                    Umber Funk Level 1

                                                                    This problem brought us too many headaches.

                                                                     

                                                                    Is there any news?

                                                                     

                                                                    Switching to the 64 bit Java is a very bad way for us, as we use 32 bit FlashDevelop together with 32 bit plugins. If we switch to 64 bit java, we would be forced to switch to 64 bit FlashDevelop.

                                                                    • 31. Re: AIR25 - dx tool failed
                                                                      Umber Funk Level 1

                                                                      v1v0c4, you are a genius!!!!

                                                                       

                                                                      I tried a million things. Finally found your post and it worked.

                                                                       

                                                                      Had to make some changes. I used:

                                                                      • jre1.8.0_111 32 bit - For FlashDevelop - Environment variable JAVA_HOME C:\Progra~2\Java\jre1.8.0_111
                                                                      • jre1.8.0_111 64 bit - For publishing to devices - Inserted the script in adt.bat (AIRSDK26/bin/adt.bat) as you have suggested: "path_to_64bit_java\bin\java.exe" -jar "%~dp0\..\lib\adt.jar" %*

                                                                       

                                                                      Both problems (dx and certificate) were solved.

                                                                       

                                                                      I am using AIR 26 on Win 10.

                                                                       

                                                                      Thank you a lot!!!! You ended my nightmare!

                                                                      • 32. Re: AIR25 - dx tool failed
                                                                        antog10602981 Level 1

                                                                        I had that problem and it's SOLVED NOW. I use windows 10 64bit, and FlashDevelop with Starling.

                                                                         

                                                                        I just updated AIR and Java 64 (uninstalled all the JAVA programs first, which probably were 32-bit). And it worked.

                                                                         

                                                                        P.S. I also changed my project's XML to air 26 and changed the location in my project's SetupSDK.bat to AIR 26.

                                                                         

                                                                        P.P.S: After uninstalling all JAVA programs I used the link below to install JRE and then JDK.

                                                                        http://www.oracle.com/technetwork/java/javase/downloads/index.html