Search code examples
importhaxeflashdevelophaxeflixelhaxelib

Cannot import library on Haxe & FlashDevelop


I added some classes through http://lib.haxe.org/ and git with the correct command (haxelib install x) and, while the classes are in the haxe/lib folder, I can't access most of them. Sometimes I'm able to import a library(I get the autocomplete and everything), but when I try to compile it gives me the error Class not found.

I searched everywhere and I still don't know how to fix this. I tried to add through Project>Properties>Classpath and I'd even edited the global Classpath but it still won't work. Right now my problem is with the library linden-google-play but I tried with another libraries and it didn't work either.

AdMob and Firetongue libraries work perfectly, and I can't understand why. Does anyone knows a way to fix this? Thanks!


Solution

  • I finally found out how to do it. You have to go to Project.xml and add the library name manually.

    <haxelib name="openfl" />
    <haxelib name="task" />