Android SDK

I've been playing with the Android support and like what I see so far. However
there's one thing bothering me and I'm not sure if it's a "feature" or if
I have something wrong with my configuration. The problem is that the Android
SDK seems to just get added as a global library (for each particular Android
version). This means that code completion, syntax checking, etc encompasses
both the Android SDK classes AND the full JDK classes. That makes it very
difficult to ensure my code is only using the subset of the JDK that Android
supports, since, for example, javax.imageio.* isn't available for Android
development but IDEA doesn't indicate this as a problem.

Is that something I just have to live with, or is there a solution?

Regards,
Chris


1 comment
Comment actions Permalink

Apparently this is a limitation that currently has no workaround. I've filed
an issue, http://youtrack.jetbrains.net/issue/IDEA-58829

I've been playing with the Android support and like what I see so far.
However there's one thing bothering me and I'm not sure if it's a
"feature" or if I have something wrong with my configuration. The
problem is that the Android SDK seems to just get added as a global
library (for each particular Android version). This means that code
completion, syntax checking, etc encompasses both the Android SDK
classes AND the full JDK classes. That makes it very difficult to
ensure my code is only using the subset of the JDK that Android
supports, since, for example, javax.imageio.* isn't available for
Android development but IDEA doesn't indicate this as a problem.

Is that something I just have to live with, or is there a solution?

Regards,
Chris



0

Please sign in to leave a comment.