Skip to content Skip to sidebar Skip to footer

Java Packages Not Importing

I am trying to import a bunch of java related API's into my android project but when I import them it says it cannot find the package here is an example of what I an trying to impo

Solution 1:

Here's what I found after a quick search on the interwebs:

Swing

How do I add the javax.swing.* packages to my libs for my android project?

Synapsis: You can't use swing in your android project

AWT

Using awt with android

Synapsis: You can't use the awt library directly, but you can make your own implementation of it, or use the one linked to here.

Solution 2:

I do no think that you can include java.swing packages in an Android app. I would suggest you take a look at the User Interface building blocks that Android provides. Here is a StackOverflow thread that has a similar discussion about not being able to add java.swing packages.

Post a Comment for "Java Packages Not Importing"