You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've built dist (make all_dist) without errors. But when translating sources that uses package android.util, for example SparseArray, it fails.
package android.util does not exist
import android.util.SparseArray;
Using other packages like org.json translates successful
Use 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 in lib folder
The text was updated successfully, but these errors were encountered:
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.
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
folderThe text was updated successfully, but these errors were encountered: