@krl3000 where did you see the different file versions? usually "libsomething.so" is just a file name, while the actual library you are referring is called "something"
i've tried to make gideros player with latest facebook SDK (3.6), but when I put @ar2rsawseen's template, the player crash. I followed the step-by-step, and I even build the player on each step. It crashes in putting the code System.loadLibrary("facebook");
@gearball hello do you use Facebook Plugin provided in the Gideros or the new one from Gideros Labs? Because you may be using old .so files with new Gideros, thus resulting in the error.
i think i'm using the one in this forum link (the first post of this thread). where's the link for the newer one? ( I can't seem to find any in gideros labs)
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Surprise to see it is in Experiment state, because it used to work in my previous game (with previous Gideros version and facebook plugin) but now it's crashed.
- Copy facebook folder to src/giderosmobile/android/plugins folder
I don't see a "facebook" folder so I'm copying the "facebookSDK" one. And I have a slightly different path: src/com/giderosmobile/android/plugins. Is that correct? because almost all of the imported java files appear with errors.
Edit: Sorry for the noob questions. I ended up using the facebook folder that's inside FacebookPlugin/src/com/giderosmobile/android/plugins.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
I install Facebook plugin in my game and I get this
\Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\facebook\fbsimple\SimpleFacebook.java Error:(12, 20) error: cannot find symbol class Session Error:(13, 20) error: cannot find symbol class SessionState Error:(474, 56) error: package Session does not exist Error:(347, 16) error: cannot find symbol class Session Error:(399, 27) error: cannot find symbol class Session Error:(483, 20) error: cannot find symbol class Session Error:(483, 37) error: cannot find symbol class SessionState Error:(118, 4) error: cannot find symbol class Session Error:(118, 22) error: cannot find symbol variable Session Error:(121, 26) error: package Session does not exist Error:(124, 5) error: cannot find symbol variable Session Error:(154, 4) error: cannot find symbol class Session Error:(154, 22) error: cannot find symbol variable Session Error:(267, 7) error: cannot find symbol variable Session Error:(269, 11) error: cannot find symbol variable Session Error:(284, 3) error: cannot find symbol class Session Error:(284, 21) error: cannot find symbol variable Session Error:(293, 25) error: package Session does not exist Error:(296, 4) error: cannot find symbol variable Session Error:(307, 33) error: cannot find symbol variable SessionState Error:(334, 3) error: cannot find symbol class Session Error:(349, 10) error: cannot find symbol variable Session Error:(401, 10) error: package Session does not exist Error:(401, 44) error: package Session does not exist Error:(441, 3) error: cannot find symbol class Session Error:(441, 21) error: cannot find symbol variable Session Error:(442, 52) error: cannot find symbol variable SessionState Error:(464, 3) error: cannot find symbol class Session Error:(464, 21) error: cannot find symbol variable Session Error:(466, 10) error: package Session does not exist Error:(466, 54) error: package Session does not exist Error:(524, 9) error: cannot find symbol variable CLOSED Error:(531, 9) error: cannot find symbol variable CLOSED_LOGIN_FAILED Error:(534, 9) error: cannot find symbol variable CREATED Error:(537, 9) error: cannot find symbol variable CREATED_TOKEN_LOADED Error:(540, 9) error: cannot find symbol variable OPENING Error:(547, 9) error: cannot find symbol variable OPENED Error:(562, 66) error: cannot find symbol variable SessionState Error:(590, 9) error: cannot find symbol variable OPENED_TOKEN_UPDATED Error:(482, 3) error: method does not override or implement a method from a supertype \Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\facebook\fbsimple\SimpleFacebookConfiguration.java Error:(6, 20) error: cannot find symbol class SessionDefaultAudience Error:(7, 20) error: cannot find symbol class SessionLoginBehavior Error:(15, 10) error: cannot find symbol class SessionDefaultAudience Error:(16, 10) error: cannot find symbol class SessionLoginBehavior Error:(89, 2) error: cannot find symbol class SessionLoginBehavior Error:(99, 2) error: cannot find symbol class SessionDefaultAudience Error:(110, 11) error: cannot find symbol class SessionDefaultAudience Error:(111, 11) error: cannot find symbol class SessionLoginBehavior Error:(171, 37) error: cannot find symbol class SessionDefaultAudience Error:(181, 35) error: cannot find symbol class SessionLoginBehavior Error:(110, 53) error: cannot find symbol variable SessionDefaultAudience Error:(111, 49) error: cannot find symbol variable SessionLoginBehavior Error:(153, 10) error: cannot find symbol variable READ Error:(156, 10) error: cannot find symbol variable PUBLISH \Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\facebook\GFacebook.java Error:(11, 20) error: cannot find symbol class AppLinkData Error:(16, 20) error: cannot find symbol class Request Error:(17, 20) error: cannot find symbol class RequestAsyncTask Error:(18, 20) error: cannot find symbol class Response Error:(19, 20) error: cannot find symbol class Session Error:(20, 26) error: package com.facebook.model does not exist Error:(21, 27) error: package com.facebook.widget does not exist Error:(22, 37) error: package com.facebook.widget.WebDialog does not exist Error:(389, 41) error: package Request does not exist Error:(395, 29) error: cannot find symbol class Response Error:(412, 36) error: cannot find symbol class OnCompleteListener Error:(71, 3) error: cannot find symbol class AppLinkData Error:(71, 29) error: cannot find symbol variable AppLinkData Error:(119, 6) error: cannot find symbol variable Session Error:(120, 11) error: cannot find symbol variable Session Error:(125, 6) error: cannot find symbol variable Session Error:(126, 17) error: cannot find symbol variable Session Error:(141, 7) error: cannot find symbol class WebDialog Error:(142, 26) error: package WebDialog does not exist Error:(143, 17) error: cannot find symbol variable Session Error:(230, 11) error: cannot find symbol variable Session Error:(242, 8) error: cannot find symbol variable Session Error:(279, 3) error: cannot find symbol class Session Error:(280, 3) error: cannot find symbol class Request Error:(280, 25) error: cannot find symbol class Request Error:(281, 3) error: cannot find symbol class RequestAsyncTask Error:(281, 31) error: cannot find symbol class RequestAsyncTask Error:(286, 3) error: cannot find symbol class Session Error:(288, 3) error: cannot find symbol class Request Error:(290, 14) error: cannot find symbol variable Request Error:(291, 4) error: cannot find symbol class RequestAsyncTask Error:(291, 32) error: cannot find symbol class RequestAsyncTask Error:(356, 3) error: cannot find symbol variable Session Error:(397, 6) error: cannot find symbol class GraphObject Error:(418, 2) error: method does not override or implement a method from a supertype \Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\facebook\fbsimple\Permissions.java Error:(3, 29) error: cannot find symbol class SessionAuthorizationType Error:(110, 10) error: cannot find symbol class SessionAuthorizationType Error:(112, 36) error: cannot find symbol class SessionAuthorizationType Error:(123, 9) error: cannot find symbol class SessionAuthorizationType Error:(105, 16) error: cannot find symbol class SessionAuthorizationType Error:(106, 16) error: cannot find symbol class SessionAuthorizationType Error:(106, 48) error: cannot find symbol variable SessionAuthorizationType Error:(105, 51) error: cannot find symbol variable SessionAuthorizationType Note: \Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\ads\frameworks\AdsAdmob.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Error:Execution failed for task ':app:compileDebugJava'. > Compilation failed; see the compiler error output for details. Information:BUILD FAILED Information:Total time: 2.041 secs Information:98 errors Information:0 warnings Information:See complete output in console
I'm not having much luck at the moment getting facebook working in Android Studio. The app builds and is installed but crashes on require "facebook". I'm obviously missing something, or the instructions are out of date, or both!!
I'd like to clarify a few points so I can write a de facto step by step installation guide for everyone as a first step. Here are my questions and comments:
1) Which version of the facebook SDK is supported by the plugin? Is it the SDK that is included in the Gideros download? 2) I followed the instructions on https://developers.facebook.com/docs/android/getting-started but they use maven as the repository for the SDK. 3) What code and manifest changes are needed? a) Do I need to add this?
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FacebookSdk.sdkInitialize(getApplicationContext()); // Initialize the SDK before executing any other operations, // especially, if you're using Facebook UI elements. }
b) Which activity is required?
or
4) The other instructions are straightforward as with any other plugin installtion:
a) Copy .so files to each separate armeabi folder b) Copy facebook folder to src/giderosmobile/android/plugins folder c) Inside your main activity: i) Add lib as System.loadLibrary("facebook"); ii) Add external class as "com.giderosmobile.android.plugins.facebook.GFacebook" Inside your AndroidManifest:
I started over with a new export and then taking a different approach. I decided to import the facebook-sdk version 3.14 as provided in the Gideros installation folder. I have imported it as a module into Android Studio and then I followed all the other instruction as before. Still no luck though
Comments
usually "libsomething.so" is just a file name, while the actual library you are referring is called "something"
v2013.09.1 on OS X is missing:
Gideros Studio/All Plugins/Facebook/bin/Android/armeabi/libfacebook.so
Gideros Studio/All Plugins/Facebook/bin/Android/armeabi-v7a/libfacebook.so
Gideros Studio/All Plugins/Flurry/bin/Android/armeabi/libflurry.so
Gideros Studio/All Plugins/Flurry/bin/Android/armeabi-v7a/libflurry.so
Google Play: https://play.google.com/store/apps/details?id=com.Mithrilsoft.Fourfold
Google Plus: https://plus.google.com/117851645612711931372
Twitter: https://twitter.com/mithrilsoft
i've tried to make gideros player with latest facebook SDK (3.6), but when I put @ar2rsawseen's template, the player crash. I followed the step-by-step, and I even build the player on each step. It crashes in putting the code System.loadLibrary("facebook");
could you help me with that?
here's my code
do you use Facebook Plugin provided in the Gideros or the new one from Gideros Labs?
Because you may be using old .so files with new Gideros, thus resulting in the error.
http://www.giderosmobile.com/labs/facebook-android
https://deluxepixel.com
I'll try them out :-)
Surprise to see it is in Experiment state, because it used to work in my previous game (with previous Gideros version and facebook plugin) but now it's crashed.
Ultimate Games on Appstore
Ultimate Games on Google Play
No errors shown in the project. But when I rebuild it, I have this error:
java: cannot find symbol
symbol: class R
location: package com.facebook.android
- Copy .so files to each separate armeabi folder.
I didn't find a single .so file .
https://github.com/gideros/giderosplugins/tree/master/Facebook/source/Android
inside which you would see different platform directories and .so files in them
- Copy facebook folder to src/giderosmobile/android/plugins folder
I don't see a "facebook" folder so I'm copying the "facebookSDK" one. And I have a slightly different path: src/com/giderosmobile/android/plugins. Is that correct? because almost all of the imported java files appear with errors.
Edit: Sorry for the noob questions. I ended up using the facebook folder that's inside FacebookPlugin/src/com/giderosmobile/android/plugins.
Then, on your project, right click it and select the properties, in the android section you will see library, click add and select Facebook.
https://deluxepixel.com
\Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\facebook\fbsimple\SimpleFacebook.java
Error:(12, 20) error: cannot find symbol class Session
Error:(13, 20) error: cannot find symbol class SessionState
Error:(474, 56) error: package Session does not exist
Error:(347, 16) error: cannot find symbol class Session
Error:(399, 27) error: cannot find symbol class Session
Error:(483, 20) error: cannot find symbol class Session
Error:(483, 37) error: cannot find symbol class SessionState
Error:(118, 4) error: cannot find symbol class Session
Error:(118, 22) error: cannot find symbol variable Session
Error:(121, 26) error: package Session does not exist
Error:(124, 5) error: cannot find symbol variable Session
Error:(154, 4) error: cannot find symbol class Session
Error:(154, 22) error: cannot find symbol variable Session
Error:(267, 7) error: cannot find symbol variable Session
Error:(269, 11) error: cannot find symbol variable Session
Error:(284, 3) error: cannot find symbol class Session
Error:(284, 21) error: cannot find symbol variable Session
Error:(293, 25) error: package Session does not exist
Error:(296, 4) error: cannot find symbol variable Session
Error:(307, 33) error: cannot find symbol variable SessionState
Error:(334, 3) error: cannot find symbol class Session
Error:(349, 10) error: cannot find symbol variable Session
Error:(401, 10) error: package Session does not exist
Error:(401, 44) error: package Session does not exist
Error:(441, 3) error: cannot find symbol class Session
Error:(441, 21) error: cannot find symbol variable Session
Error:(442, 52) error: cannot find symbol variable SessionState
Error:(464, 3) error: cannot find symbol class Session
Error:(464, 21) error: cannot find symbol variable Session
Error:(466, 10) error: package Session does not exist
Error:(466, 54) error: package Session does not exist
Error:(524, 9) error: cannot find symbol variable CLOSED
Error:(531, 9) error: cannot find symbol variable CLOSED_LOGIN_FAILED
Error:(534, 9) error: cannot find symbol variable CREATED
Error:(537, 9) error: cannot find symbol variable CREATED_TOKEN_LOADED
Error:(540, 9) error: cannot find symbol variable OPENING
Error:(547, 9) error: cannot find symbol variable OPENED
Error:(562, 66) error: cannot find symbol variable SessionState
Error:(590, 9) error: cannot find symbol variable OPENED_TOKEN_UPDATED
Error:(482, 3) error: method does not override or implement a method from a supertype
\Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\facebook\fbsimple\SimpleFacebookConfiguration.java
Error:(6, 20) error: cannot find symbol class SessionDefaultAudience
Error:(7, 20) error: cannot find symbol class SessionLoginBehavior
Error:(15, 10) error: cannot find symbol class SessionDefaultAudience
Error:(16, 10) error: cannot find symbol class SessionLoginBehavior
Error:(89, 2) error: cannot find symbol class SessionLoginBehavior
Error:(99, 2) error: cannot find symbol class SessionDefaultAudience
Error:(110, 11) error: cannot find symbol class SessionDefaultAudience
Error:(111, 11) error: cannot find symbol class SessionLoginBehavior
Error:(171, 37) error: cannot find symbol class SessionDefaultAudience
Error:(181, 35) error: cannot find symbol class SessionLoginBehavior
Error:(110, 53) error: cannot find symbol variable SessionDefaultAudience
Error:(111, 49) error: cannot find symbol variable SessionLoginBehavior
Error:(153, 10) error: cannot find symbol variable READ
Error:(156, 10) error: cannot find symbol variable PUBLISH
\Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\facebook\GFacebook.java
Error:(11, 20) error: cannot find symbol class AppLinkData
Error:(16, 20) error: cannot find symbol class Request
Error:(17, 20) error: cannot find symbol class RequestAsyncTask
Error:(18, 20) error: cannot find symbol class Response
Error:(19, 20) error: cannot find symbol class Session
Error:(20, 26) error: package com.facebook.model does not exist
Error:(21, 27) error: package com.facebook.widget does not exist
Error:(22, 37) error: package com.facebook.widget.WebDialog does not exist
Error:(389, 41) error: package Request does not exist
Error:(395, 29) error: cannot find symbol class Response
Error:(412, 36) error: cannot find symbol class OnCompleteListener
Error:(71, 3) error: cannot find symbol class AppLinkData
Error:(71, 29) error: cannot find symbol variable AppLinkData
Error:(119, 6) error: cannot find symbol variable Session
Error:(120, 11) error: cannot find symbol variable Session
Error:(125, 6) error: cannot find symbol variable Session
Error:(126, 17) error: cannot find symbol variable Session
Error:(141, 7) error: cannot find symbol class WebDialog
Error:(142, 26) error: package WebDialog does not exist
Error:(143, 17) error: cannot find symbol variable Session
Error:(230, 11) error: cannot find symbol variable Session
Error:(242, 8) error: cannot find symbol variable Session
Error:(279, 3) error: cannot find symbol class Session
Error:(280, 3) error: cannot find symbol class Request
Error:(280, 25) error: cannot find symbol class Request
Error:(281, 3) error: cannot find symbol class RequestAsyncTask
Error:(281, 31) error: cannot find symbol class RequestAsyncTask
Error:(286, 3) error: cannot find symbol class Session
Error:(288, 3) error: cannot find symbol class Request
Error:(290, 14) error: cannot find symbol variable Request
Error:(291, 4) error: cannot find symbol class RequestAsyncTask
Error:(291, 32) error: cannot find symbol class RequestAsyncTask
Error:(356, 3) error: cannot find symbol variable Session
Error:(397, 6) error: cannot find symbol class GraphObject
Error:(418, 2) error: method does not override or implement a method from a supertype
\Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\facebook\fbsimple\Permissions.java
Error:(3, 29) error: cannot find symbol class SessionAuthorizationType
Error:(110, 10) error: cannot find symbol class SessionAuthorizationType
Error:(112, 36) error: cannot find symbol class SessionAuthorizationType
Error:(123, 9) error: cannot find symbol class SessionAuthorizationType
Error:(105, 16) error: cannot find symbol class SessionAuthorizationType
Error:(106, 16) error: cannot find symbol class SessionAuthorizationType
Error:(106, 48) error: cannot find symbol variable SessionAuthorizationType
Error:(105, 51) error: cannot find symbol variable SessionAuthorizationType
Note: \Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\ads\frameworks\AdsAdmob.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Error:Execution failed for task ':app:compileDebugJava'.
> Compilation failed; see the compiler error output for details.
Information:BUILD FAILED
Information:Total time: 2.041 secs
Information:98 errors
Information:0 warnings
Information:See complete output in console
Any thoughts on what I am doing wrong?
Thanks
I'd like to clarify a few points so I can write a de facto step by step installation guide for everyone as a first step. Here are my questions and comments:
1) Which version of the facebook SDK is supported by the plugin? Is it the SDK that is included in the Gideros download?
2) I followed the instructions on https://developers.facebook.com/docs/android/getting-started but they use maven as the repository for the SDK.
3) What code and manifest changes are needed?
a) Do I need to add this?
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
FacebookSdk.sdkInitialize(getApplicationContext());
// Initialize the SDK before executing any other operations,
// especially, if you're using Facebook UI elements.
}
b) Which activity is required?
or
4) The other instructions are straightforward as with any other plugin installtion:
a) Copy .so files to each separate armeabi folder
b) Copy facebook folder to src/giderosmobile/android/plugins folder
c) Inside your main activity:
i) Add lib as System.loadLibrary("facebook");
ii) Add external class as "com.giderosmobile.android.plugins.facebook.GFacebook"
Inside your AndroidManifest:
Cheers,
Simon
I started over with a new export and then taking a different approach. I decided to import the facebook-sdk version 3.14 as provided in the Gideros installation folder. I have imported it as a module into Android Studio and then I followed all the other instruction as before. Still no luck though