I'm trying to setup the Facebook sdk for Flex for the first time. I si开发者_高级运维mply copied the Graph API 1.6 web into my lib folder. And when i try and import it, it even shows up as you type, as you can see in img1. But after i save my project I get an error saying it cannot be found. Does anyone know how i should properly setup the facebook flex sdk?
edit: figured it out, thanks!
Shouldn't that line read either
import com.facebook.graph.*;
or
import com.facebook.graph.SomeClass;
?
I always rely on Flex Builder to organize my import
statements. That way I never really have to deal with these errors.
It seems like a flashbuilder's bug.
Two steps:
project => clean => build
restart your flashbuilder
精彩评论