Open CruorVult opened 1 year ago
We removed the android.util classes from the jre_emul libraries because with Java 9+ they can't be in the same module as JRE classes. This issue shows there's more work that needs to be done to fix android.util support.
As a temporary workaround, you should be able to just copy the sources you need from this package into your iOS app or a separate library. Several of these classes depend upon com.android.internal.util classes, which can also be included.
Tom, thank you for answer! I'll copy the sources as you recommended.
I would be nice to get fixed.
It would be useful to mention this in build instructions https://developers.google.com/j2objc/guides/building-j2obj.
I've built dist (
make all_dist
) without errors. But when translating sources that uses packageandroid.util
, for exampleSparseArray
, it fails.Using other packages like
org.json
translates successfulUse this command to translate
"$HOME/j2objc/dist/j2objc" -d "gen" -classpath "$HOME/j2objc/dist/lib/json.jar" --no-package-directories -sourcepath "." "Test.java"
Comparing with public distribution I've noticed that there is no
libandroid_util.a
inlib
folder