Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
567 views
in Technique[技术] by (71.8m points)

eclipse - android facebook sdk v4.0 not working

Using Eclipse. SDK Manager is up to date. How ever when I import the facebook SDK to my workspace. It throws lots of error.

facebook-android-sdk-4.0.0facebook esvaluesmessenger_button_styles.xml:66: error: Error: No resource found that matches the given name: attr 'android:textAllCaps'. I removed it from values.

The import android.support cannot be resolved I added support v4 '<>' operator is not allowed for source level below 1.7 If i change the complier it gives kitkat below error. When I do insert inferred type arguments It goes away. Afterwards it gives bolts library error. Then I downloaded bolts and import it too. How ever this time bolts gives a lots of that I can't fixed further. Any suggestions for it.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The Facebook Android SDK v4.0 uses Gradle as it's build and dependency management system. http://marketplace.eclipse.org/content/gradle-integration-eclipse-44 is available for Eclipse. Also http://eclipse.org/m2e/ can be used for integrating with the Facebook's maven artifact: http://search.maven.org/#artifactdetails|com.facebook.android|facebook-android-sdk|4.0.0|

The android:textAllCaps issue occurs if you're targeting a version smaller than API 15. This doesn't cause a build issue in Gradle, and the lint warning is suppressed as it's ignored in API versions < 15.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...