Hi Shai Thanks a lot for the response, much appreciated. The classes were not there in lib/impl/cls, but there was indeed an error related to build.xml in that the directory \build\tmp seemed to be not created (even though the message said so): Running the IDE as administrator fixes the issue: the directory gets created, the classes are added to lib/impl/cls and compilation works as expected afterwards. I don't know if this is an issue specific to my setup, but I assume that it isn't, as I'm using the standard configuration and project path for IntelliJ.
Thank you very much! Kind regards Philip On Wednesday, February 17, 2021 at 3:33:06 AM UTC+1, Shai Almog wrote: > > Hi, > this should work but there might be a regression in project creation in > one of our recent plugin releases (the latest should be fine). > > After doing a Refresh cn1libs open the "Messages" section. Toggle off the > Tree mode on the left hand side to see the actual printouts. There might be > some errors related to proguard there. You can remove that entire section > from the build.xml if it's there. > > After the process of refresh is done you can expand "lib/impl/cls" where > you should be able to see all the expanded classes you should be able to > import. Are the files there? > > > On Tuesday, February 16, 2021 at 5:54:56 PM UTC+2 [email protected] > wrote: > >> If you are experiencing an issue please mention the full platform your >> issue applies to: >> IDE: IntelliJ IDEA >> Desktop OS: Windows 10 >> >> When I add the cn1lib "sensors" via the extensions-menu and click >> "Refresh cn1lib", something seems to be downloaded and compiling. However, >> when I try to import a class from the library, it doesn't seem to be in the >> classpath. >> I tried all the things I could think of. The only one that seemed to do >> anthing was copying the class files into the lib folder manually. This >> creates a problem because then there are multiple Implementations of the >> SensorManager in the classpath and it won't build. >> On Netbeans, the same code compiles and runs without issue. >> >> Any idea what I'm doing wrong here? >> Cheers >> Philip >> >> -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/81ad9a46-78d9-46e4-b381-1cc097806b94o%40googlegroups.com.
