|
Post by federico on Jul 1, 2024 13:25:38 GMT
Hi all, I tried to build rhodes-fcm-test code (github.com/tauplatform/rhodes-fcm-test) and I can successfully build and get an apk. So I made just one change: I added the extension:barcode in build.yml and the build failed with this error:
C:\RhoMobileSuite7.6.5\ruby\lib\ruby\gems\2.5.0\gems\rhodes-7.6.5\extensions\emdk3-manager\ext\platform\android\src\com\rho\emdk3\EMDK3Extension.java:8: error: package com.symbol.emdk does not exist import com.symbol.emdk.EMDKManager; and 15 other similar errors related to EMDK Package. I attach the final part (1MB) of build log with --trace. However, I add to my Android sdk the EMDK Plugin following this guide: techdocs.zebra.com/emdk-for-android/13-0/guide/setup/(section - Install/Update EMDK Plugin) Which is the correct way to add EMDK to my environment? My environment setup is: RMS 7.6.5 , SDK 33, NDK 24, build tools 33. Thank you for your help.
Federico
Attachments:build_log_trace.txt (975.97 KB)
|
|
|
Post by Alex Epifanov on Jul 2, 2024 9:46:32 GMT
Hi Federico,
I believe we have not tested with latest EMDK. Try with v4.2. Rho build system expects that EMDK libraries is installed to Android tools root/add-ons dir. We can support any version for your app if needed. Email to info@tau-platform.com for details.
Also, if you or anyone from commumitiy can implement this kind of support, we appreciate pull requests from Rho users.
Regards, Alex
|
|
|
Post by federico on Jul 3, 2024 14:48:57 GMT
Hi Alex and all, Following your suggestions, I installed EMDK v4.2 using the installer for windows downloaded from here:
Then I manually created a add-ons folder under Android SDK directory, and I moved there the three add-ons addon-symbol-emdk_v4.2-API-22 19 16, then I tried to build again but I had a different error: Error: Cannot fit requested classes in a single dex file (# fields: 68069 > 65536). Try supplying a main-dex list Compilation failed Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, position: null at com.android.tools.r8.internal.pj.a(R8_3.3.20-dev+aosp5_a629c2c3592f558d09a1aa063f8fa13e35ca354216d318a506759ca7374873e0:98) at com.android.tools.r8.D8.main(R8_3.3.20-dev+aosp5_a629c2c3592f558d09a1aa063f8fa13e35ca354216d318a506759ca7374873e0:4) Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, position: null [...] Caused by: com.android.tools.r8.internal.f: Cannot fit requested classes in a single dex file (# fields: 68069 > 65536) [...] ... 5 more rake aborted! Error running DEX builder
I attach the last MB of build log with --trace option.
Any idea to fix this? Thank you for your help Federico
Attachments:build_log_trace_dex.txt (921.66 KB)
|
|
|
Post by Alex Epifanov on Jul 4, 2024 12:40:19 GMT
|
|