Android Studio keeps importing import sun.jvm.hotspot.utilities.IntArray

The only way I found, and it works so far, is disabling automatic import for specifically sun.* and com.sun.* packages. Just disabling sun.jvm.hotspot.utilities.IntArray caused Android Studio to select some other sun/com.sun packages to imports. Still not sure why, but here is where you can find the setting:

enter image description here

Leave a Comment