Issue
I am looking at how to import the SWT UI library into my Java project. I found the pom file for SWT on maven at: rel="nofollow">https://repo1.maven.org/maven2/org/eclipse/swt/3.3.0-v3346/swt-3.3.0-v3346.pom
From the file I added the following line to my build.gradle
file
compile "org.eclipse:swt:3.3.0"
however when I added it to my build.gradle
I received the following error:
Project 'L-CAD Main' is missing required library: '/home/ashley/unresolved dependency - org.eclipse swt 3.3.0'
If I understand this right this means it can't find the dependency, so I don't know what I'm doing wrong.
My IDE is Eclipse.
Solution
You have to use the whole package name in the dependency line, including the version number.
Therefore add: compile "org.eclipse:swt:3.3.0-v3346"
to the build.gradle
file.
Answered By - Segfault
Answer Checked By - Mary Flores (JavaFixing Volunteer)