Menu

Can't merge classes.dex file in Delphi XE5(without any updates)

PinTron
2014-08-05
2015-01-11
  • PinTron

    PinTron - 2014-08-05

    Hi,
    I installed DPF.Android.Native.Components.v2.8.1 in my Delphi XE5(without any updates), I modified some parameters of the 'build.bat' in JavaClasses folder and run it, but I get some errors(see attached file:build error.png). I don't understand what is my mistake.

    My Delphi XE5 version is in attached file:Delphi XE5 Version.png.

    I also send my Delphi classes.dex file and build.bat (in build.zip) to you.

    Could you help me merge a new classes.dex for me?

    Thanks a lot.

    Best regards,
    GuChao

     

    Last edit: PinTron 2014-08-12
  • Niko

    Niko - 2014-08-05

    Hi, i don't see any attached file!?
    so it's not possible to help

     
  • PinTron

    PinTron - 2014-08-12

    Sorry, I didn't find how to upload attachments last time. I just send a mail to 'general@discussion.dpfdelphiandroid.p.re.sf.net' with attach files.

    Now, I have uploaded my files like I said before.

    I wish you can help me. I think if you can send me a new 'Classes.dex' file for 2.8.1 with Delphi XE5(without any updates) is the BEST way.

    Thanks a lot.

     
  • Niko

    Niko - 2014-08-14

    Sorry, sending classes.dex would not help you, because i have XE5 Upd2!

    So i did this build process again on my installation.
    Here my steps:

    • unzipped the components to:
      T:_DPF.Android.Native.Components.v2.8.1
    • edited env_vars in
      T:_DPF.Android.Native.Components.v2.8.1\JavaClasses\build.bat
      as described in install.txt according to my installation paths
      (have attached my changed build.bat)
    • starting build process in command-box (DosBox):
    • started cmd.exe with admin rights (not knowing if it is necessary)
      REM due to missing PATH information of javac.exe i had to add pathinfo manually:
      C:\Windows\system32> (prompt may be differerent)
      set PATH=C:\Program Files (x86)\Java\jdk1.6.0_26\bin
      (adjust path to your jdk installation!)
      REM now change directory to DPF Classes - according to my Installation:
      T:
      cd _DPF.Android.Native.Components.v2.8.1\JavaClasses
      REM start build
      build.bat
      REM result see screenshot attached

    good luck

    Let me know if this will help. otherwise check your android kit version ...

     
  • PinTron

    PinTron - 2014-08-20

    I have tested again with using JDK1.6.0_38 and JDK1.7.0_67, my android sdk is android-4.4.2, but I got same error.

    I think my problem is when I run 'build.bat' on executing following command:

    java -cp %DX_LIB%\dx.jar com.android.dx.merge.DexMerger %PROJ_DIR%\output\dex\classes.dex %PROJ_DIR%\output\dex\test_classes.dex %EMBO_DEX%

    I got following error messages(like attached image red block region):

    Exception in thread "main" com.android.dex.DexException: unknown output extension : Files
    at com.android.dex.Dex.<init>(Dex.java:115)
    at com.android.dx.merge.DexMerger.main(DexMerger.java:1117)

    I google it, but find nothing. I don't know why I got these error messages.

    I upload some android sdk folders and path define images, please help me check them.

     
  • PinTron

    PinTron - 2014-08-20

    And this is my Android SDK Manager Screenshot

     
  • jose zuluaga

    jose zuluaga - 2015-01-11

    were you able to merge the file ?
    I'm having the same issue
    thank you

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.