<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>[LF71GA2] Unresolved requirement: Import-Package: com.google.zxing</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112290473" />
  <subtitle>[LF71GA2] Unresolved requirement: Import-Package: com.google.zxing</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112290473</id>
  <updated>2026-04-05T04:15:10Z</updated>
  <dc:date>2026-04-05T04:15:10Z</dc:date>
  <entry>
    <title>RE: [LF71GA2] Unresolved requirement: Import-Package: com.google.zxing</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112552278" />
    <author>
      <name>Mahammad Ashik A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112552278</id>
    <updated>2019-03-04T07:40:42Z</updated>
    <published>2019-03-04T07:40:42Z</published>
    <summary type="html">Hi &lt;span style="color: inherit"&gt;&lt;span style="font-family: inherit"&gt;&lt;span style="font-size: 14px;"&gt;Diego Cantone,&lt;br /&gt;I am facing same problem. How you resolved?&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Could please share me your gradle and bnd file for reference.&lt;br /&gt;​​​​​​​Thanks you</summary>
    <dc:creator>Mahammad Ashik A</dc:creator>
    <dc:date>2019-03-04T07:40:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: [LF71GA2] Unresolved requirement: Import-Package: com.google.zxing</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112340229" />
    <author>
      <name>Diego Cantone</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112340229</id>
    <updated>2019-02-13T16:49:38Z</updated>
    <published>2019-02-13T16:49:38Z</published>
    <summary type="html">Thanks for the answers, i solved by editing the .bnd file with the include-resource tag and by including every jar needed with @core-3.3.0.jar,@javase-3.3.0.jar and so on.</summary>
    <dc:creator>Diego Cantone</dc:creator>
    <dc:date>2019-02-13T16:49:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: [LF71GA2] Unresolved requirement: Import-Package: com.google.zxing</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112310358" />
    <author>
      <name>Paolo Giannone</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112310358</id>
    <updated>2019-02-12T09:34:13Z</updated>
    <published>2019-02-12T09:34:13Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Diego,&lt;br&gt;&lt;br&gt;try using:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;compileInclude group: 'com.google.zxing', name: 'core', version: '3.3.0'
compileInclude group: 'com.google.zxing', name: 'javase', version: '3.3.0'​​​​​​&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;The 'compileInclude' configuration allows you to include the dependency in the compile classpath. &lt;br&gt;​​​​​​​Open your&amp;nbsp;jar after the build: you will be able to find all the classes you need to run your code.&amp;nbsp;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Paolo Giannone</dc:creator>
    <dc:date>2019-02-12T09:34:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: [LF71GA2] Unresolved requirement: Import-Package: com.google.zxing</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112293409" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112293409</id>
    <updated>2019-02-11T16:19:17Z</updated>
    <published>2019-02-11T16:19:17Z</published>
    <summary type="html">&lt;blockquote&gt;Diego Cantone&lt;br /&gt;But sadly i continue to get the same error.&lt;/blockquote&gt;Hi Diego,&lt;br /&gt;it&amp;#39;s not enough to change the compiler dependencies: That will only help you during build-time. At runtime, Liferay needs to have access to the libraries as well. Take the OSGi bundle(s) for this library and deploy it/them to Liferay, e.g. by dropping them into the deploy folder. Then you&amp;#39;ll have them available at runtime as well, and the dependency issue should be resolved. (unless you&amp;#39;re missing transitive dependencies)</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-02-11T16:19:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: [LF71GA2] Unresolved requirement: Import-Package: com.google.zxing</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112293046" />
    <author>
      <name>Diego Cantone</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112293046</id>
    <updated>2019-02-11T14:37:00Z</updated>
    <published>2019-02-11T14:37:00Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;blockquote&gt;Olaf Kock&lt;blockquote&gt;Diego Cantone&lt;br&gt;so, all seems to be ok, but when i deploy the module on the server i get this error:&lt;pre&gt;&lt;code&gt;​​​​​​​Unresolved requirement: Import-Package: com.google.zxing&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;At &lt;em&gt;build-&lt;/em&gt;time, all requirements are met. The compiler knows the code that you're referring to.&lt;br&gt;At &lt;em&gt;run&lt;/em&gt;-time, Liferay does not have access to all the code that was around at build time. Ideally the zxing jars would be OSGi bundles (please check), then you can just deploy them to Liferay. Otherwise you'll have to embed the code in your own modules.&lt;br&gt;Note that you might need some transitive dependencies as well. I don't have experience with the use of the zxing libraries.&lt;/blockquote&gt;&lt;br&gt;Hi Olaf, thank for the answer, i've found the same library as an OSGI bundle, or i think so, correct me if i'm wrong, it should be this&amp;nbsp;&lt;pre&gt;&lt;code&gt;​​​​​​​compile group: 'org.apache.servicemix.bundles', name: 'org.apache.servicemix.bundles.zxing', version: '3.3.0_1' &lt;/code&gt;&lt;/pre&gt;so as you said, and as is written in &lt;a href="https://community.liferay.com/it/blogs/-/blogs/osgi-module-dependencies"&gt;this tutorial&amp;nbsp;&lt;/a&gt;, now it should work without problem..&lt;br&gt;But sadly i continue to get the same error.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Diego Cantone</dc:creator>
    <dc:date>2019-02-11T14:37:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: [LF71GA2] Unresolved requirement: Import-Package: com.google.zxing</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112291247" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112291247</id>
    <updated>2019-02-11T12:16:08Z</updated>
    <published>2019-02-11T12:16:08Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;blockquote&gt;Diego Cantone&lt;br&gt;so, all seems to be ok, but when i deploy the module on the server i get this error:&lt;pre&gt;&lt;code&gt;​​​​​​​Unresolved requirement: Import-Package: com.google.zxing&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;At &lt;em&gt;build-&lt;/em&gt;time, all requirements are met. The compiler knows the code that you're referring to.&lt;br&gt;At &lt;em&gt;run&lt;/em&gt;-time, Liferay does not have access to all the code that was around at build time. Ideally the zxing jars would be OSGi bundles (please check), then you can just deploy them to Liferay. Otherwise you'll have to embed the code in your own modules.&lt;br&gt;Note that you might need some transitive dependencies as well. I don't have experience with the use of the zxing libraries.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-02-11T12:16:08Z</dc:date>
  </entry>
  <entry>
    <title>[LF71GA2] Unresolved requirement: Import-Package: com.google.zxing</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112290472" />
    <author>
      <name>Diego Cantone</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112290472</id>
    <updated>2019-02-11T11:15:39Z</updated>
    <published>2019-02-11T11:15:39Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi, i'm having a hard time with gradle dependencies, here is the situation, in my build.gradle i have the following dependecies:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;pre&gt;&lt;code&gt;compile group: 'com.google.zxing', name: 'core', version: '3.3.0'
compile group: 'com.google.zxing', name: 'javase', version: '3.3.0'&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;in my class i have the following imports without any errors:&amp;nbsp;&lt;pre&gt;&lt;code&gt;​​​​​​​import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.MultiFormatWriter;
import com.google.zxing.client.j2se.MatrixToImageWriter;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;in project and external dependencies i have the following jars:&lt;pre&gt;&lt;code&gt;​​​​​​​javase-3.3.0.jar
core-3.3.0.jar
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;so, all seems to be ok, but when i deploy the module on the server i get this error:&lt;pre&gt;&lt;code&gt;​​​​​​​Unresolved requirement: Import-Package: com.google.zxing&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;As you can see in the screens attached, i really don't understand what's going wrong, can someone help me?&amp;nbsp;&lt;br&gt;Thanks&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Diego Cantone</dc:creator>
    <dc:date>2019-02-11T11:15:39Z</dc:date>
  </entry>
</feed>
