我要发布的照片和文字在Facebook上,为我用低于code来自Facebook的参考网站
i want to publish photo and text in facebook, for that i have used below code from the facebook reference site
https://developers.facebook.com /文档/安卓/链接到您的本机应用程序内/#第六步
我复制所有code在我的活动,以便code,但在下面的线,我得到错误
i have copied all the code in my activity so code but in below line i am getting error
Session.NewPermissionsRequest newPermissionsRequest = new Session.NewPermissionsRequest(
MainActivity.this, PERMISSIONS);
下面这一行我收到错误例如的类型android.support.v4.app.Fragment无法得到解决。这是间接地从必需的.class文件中引用
here in this line i am getting error like The type android.support.v4.app.Fragment cannot be resolved. It is indirectly referenced from required .class files
任何人可以帮助我,如何解决这个问题,我认为,这是因为*的 Android的支持,v4.jar * 的也是在这里,它是在Facebook的SDK还,
can anybody help me, how to resolve this, i think that it is because *android-support-v4.jar * is also over here and it is in facebook sdk also,
我使用这个计算器回答解决了这个问题:
I resolved this issue using this StackOverflow answer:
如果您使用的是Eclipse和窗口,这里是你如何能摆脱这种错误的。
If you are using eclipse and windows, here is how you can get rid of this error.
右键点击您的项目文件夹 - >构建path->配置构建path->
Right click on your project folder->Build path-> Configure build path->
添加外部JAR - >选择Android的支持 - v4.jar的文件(这将设在安卓 Android的SDK-WINDOWS \演员\机器人\ SUPPORT)
Add External Jars -> select "android-support-v4.jar" file (It'll be located in Android "android-sdk-windows\extras\android\support")
然后单击确定。