问题描述
我通过和git使用正确的命令添加了一些类(haxelib安装x),虽然这些类在haxe / lib文件夹中,但我无法访问其中的大多数。有时候我可以导入一个库(我得到自动完成和所有内容),但是当我尝试编译时,它给出了错误未找到类
。
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
.
我到处搜索,我仍然不知道如何解决这个问题。我尝试通过Project> Properties> Classpath添加,我甚至编辑了全局Classpath,但它仍然无法工作。现在我的问题是库linden-google-play,但我尝试了另一个库,它也没有用。
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和Firetongue库完美运行,我无法理解原因。有谁知道解决这个问题的方法?
谢谢!
AdMob and Firetongue libraries work perfectly, and I can't understand why. Does anyone knows a way to fix this?Thanks!
推荐答案
我终于找到了怎么做。您必须转到Project.xml并手动添加库名。
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"/>
这篇关于无法在Haxe& ;;上导入库FlashDevelop中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!