Hi everyone,
I am currently working on a B4A wrapper for the Android Health Connect SDK. I am developing the wrapper in Android Studio (Kotlin) and my goal is to produce two JAR files:
1.StepCounterHC.jar (the wrapper classes)
2.stepcounterhc_dependencies.jar (all merged dependencies like Health Connect, Protobuf, and Guava).
When I compile in B4A, I get the following Dex error:
Error in C:\Android\tools\..\extras\b4a_local\unpacked-com.google.guava-guava-63914864012000\dex_v1\com.google.guava-guava.zip:classes.dex:
Type com.google.common.base.Function is defined multiple times: C:\Android\tools\..\extras\b4a_local\unpacked-com.google.guava-guava-63914864012000\dex_v1\com.google.guava-guava.zip:classes.dex, C:\Android\tools\..\extras\b4a_local\unpacked-stepcounterhc_dependencies-63922555505069\dex_v1\stepcounterhc_dependencies.zip:classes.dex
If I exclude guava from stepcounterhc_dependecies.jar I get a runtime error ClassNotFound: Settablefuture (which is from guava). When I search for com.google.guava-guava at runtime, its not found at all but its in the list of dexed files.
I am at a loss here, any help is highly appreciated. Thanks.
I am currently working on a B4A wrapper for the Android Health Connect SDK. I am developing the wrapper in Android Studio (Kotlin) and my goal is to produce two JAR files:
1.StepCounterHC.jar (the wrapper classes)
2.stepcounterhc_dependencies.jar (all merged dependencies like Health Connect, Protobuf, and Guava).
When I compile in B4A, I get the following Dex error:
Error in C:\Android\tools\..\extras\b4a_local\unpacked-com.google.guava-guava-63914864012000\dex_v1\com.google.guava-guava.zip:classes.dex:
Type com.google.common.base.Function is defined multiple times: C:\Android\tools\..\extras\b4a_local\unpacked-com.google.guava-guava-63914864012000\dex_v1\com.google.guava-guava.zip:classes.dex, C:\Android\tools\..\extras\b4a_local\unpacked-stepcounterhc_dependencies-63922555505069\dex_v1\stepcounterhc_dependencies.zip:classes.dex
If I exclude guava from stepcounterhc_dependecies.jar I get a runtime error ClassNotFound: Settablefuture (which is from guava). When I search for com.google.guava-guava at runtime, its not found at all but its in the list of dexed files.
I am at a loss here, any help is highly appreciated. Thanks.