danutchereches / Facebook-Contact-Sync

Syncs your Facebook friends with your Android phone or tablet.
https://play.google.com/store/apps/details?id=ro.weednet.contactssync
GNU General Public License v3.0
0 stars 0 forks source link

Build problem related to Facebook SDK #20

Closed dalb8 closed 11 years ago

dalb8 commented 11 years ago

I get [javac] Compiling 76 source files to /home/gerry/extlib/FacebookSDK/facebook/bin/classes [javac] /home/gerry/extlib/FacebookSDK/facebook/src/com/facebook/model/GraphObject.java:198: warning: [rawtypes] found raw type: Class [javac] Class<?>[] interfaces = new Class[] { graphObjectClass }; [javac] ^ [javac] missing type arguments for generic class Class<T> [javac] where T is a type-variable: [javac] T extends Object declared in class Class [javac] /home/gerry/extlib/FacebookSDK/facebook/src/com/facebook/model/GraphObject.java:208: warning: [rawtypes] found raw type: Class [javac] Class<?>[] interfaces = new Class[]{Map.class}; [javac] ^ [javac] missing type arguments for generic class Class<T> [javac] where T is a type-variable: [javac] T extends Object declared in class Class [javac] error: warnings found and -Werror specified [javac] 1 error [javac] 2 warnings ==== stdout end ==== ==== stderr begin ==== I tried several tags for Facebook SDK but I don't know which one to use.

danutchereches commented 11 years ago

I'm not sure, but it might be related to the compliance level. (android requires 5 or 6) But being an issue unrelated to Facebook Sync, I'm going to close it.

dalb8 commented 11 years ago

I fixed that error with https://github.com/alexey-pelykh/facebook-android-sdk/commit/b3e6e20a534edd12d31dce70d96cdf6c8c0d51b7 but now: -compile: [javac] Compiling 22 source files to /home/gerry/build/ro.weednet.contactssync/bin/classes [javac] /home/gerrry/build/ro.weednet.contactssync/src/ro/weednet/contactssync/client/NetworkUtilities.java:34: error: AccessToken is not public in com.facebook; cannot be accessed from outside package [javac] import com.facebook.AccessToken; [javac] ^ [javac] /home/gerry/build/ro.weednet.contactssync/src/ro/weednet/contactssync/client/NetworkUtilities.java:72: error: cannot find symbol [javac] AccessToken accessToken = AccessToken.createFromExistingAccessToken(token, null, null, null, null); [javac] ^ [javac] symbol: class AccessToken [javac] location: class NetworkUtilities [javac] /home/gerry/build/ro.weednet.contactssync/src/ro/weednet/contactssync/client/NetworkUtilities.java:72: error: cannot find symbol [javac] AccessToken accessToken = AccessToken.createFromExistingAccessToken(token, null, null, null, null); [javac] ^ [javac] symbol: variable AccessToken [javac] location: class NetworkUtilities [javac] Note: /home/gerry/build/ro.weednet.contactssync/src/ro/weednet/contactssync/syncadapter/SyncAdapter.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 3 errors

danutchereches commented 11 years ago

I don't know what version of the SDK you are using, but it works fine with the latest one, from Github.

AccessToken is not public in com.facebook; cannot be accessed from outside package [javac] import com.facebook.AccessToken;

The AccessToken class is public: https://github.com/facebook/facebook-android-sdk/blob/master/facebook/src/com/facebook/AccessToken.java

dalb8 commented 11 years ago

Thanks , it works at sdk-version-3.0.1. I think I had been trying the beta tag