Issues integrating FacebookSDK and SimpleFacebook into Main Eclipse Project and starting Android app -


first post ever, here go:

so had luck of getting internship @ company builds , maintain apps eateries. have been stuck 3 weeks on getting app run in emulator (embarrassing af). i've looked many solutions none have worked, best came top answer in form of guide i've combined steps sromku's setup guide simplefacebook on eclipse (https://github.com/sromku/android-simple-facebook/wiki/setup-project), i'm still having issues. errors pop pretty similar whether running in windows or mac, pretty sure overlooking stupid.

i forgot mentioned restricted using eclipse, though android studio recommended ide company pretty set on eclipse.

i wish upload pictures, stackoverflow won't let me upload images until have @ least 10 rep >.<

common errors getting :

the container 'android dependencies' references non existing library ' ../..main\bin\main.jar' project cannot built until build path errors resolved 

and upon cleaning project

asyncfacebookrunner cannot resolved type 

along bunch of error facebook related errors, 100 in total. i've tried , out of ideas, having tried common solutions , in different variations, cleaning/rebuilding/&organizing imports.

so question: overloooking?

/end

edit here directory images of each project's properties screens , workspace:

edit 2 here snippet of 1 class errors in case helps. see errors on 'private facebook facbook' & 'private asyncfacebookrunner masyncrunner' eclipse says cannot resolved type.

package com.ak.app.neckter.activity;  import org.json.jsonobject;  import com.akl.zoes.kitchen.util.appconstants; import com.akl.zoes.kitchen.util.webhttpmethodclass;  import android.app.activity; import android.app.alertdialog; import android.content.context; import android.content.dialoginterface; import android.content.intent; import android.content.sharedpreferences; import android.content.pm.packagemanager; import android.os.asynctask; import android.os.bundle; import android.preference.preferencemanager; import android.view.view; import android.view.view.onclicklistener; import android.widget.button;  public class sharestashactivity extends activity {      // facebook app id     private static string app_id = "472137856222590"; // replace app id     // here      // instance of facebook class     private facebook facebook;     private asyncfacebookrunner masyncrunner;     string filename = "androidsso_data";     private sharedpreferences mprefs;      static alertdialog.builder alertdialogbuilder;     sharedpreferences mpreference;      public sharedpreferences getpreference() {         return mpreference;     }      @override     protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.activity_share_stash);         mpreference = preferencemanager.getdefaultsharedpreferences(this);         button shareviafacebook = (button) findviewbyid(r.id.shareviafacebook);         button shareviatwitter = (button) findviewbyid(r.id.shareviatwitter);         facebook = new facebook(app_id);         masyncrunner = new asyncfacebookrunner(facebook);         shareviafacebook.setonclicklistener(new onclicklistener() {              @override             public void onclick(view v) {                 // if (!isappinstalled("com.facebook.katana"))                 // sharestashactivity                 // .showmessagedialog("please install facebook!",                 // sharestashactivity.this);                 // else {                 logintofacebook();                 // new fetchreferralrequestserver().execute("");                 // }             }         });          shareviatwitter.setonclicklistener(new onclicklistener() {              @override             public void onclick(view v) {                 if (!isappinstalled("com.twitter.android"))                     sharestashactivity.showmessagedialog(                             "please install twitter!", sharestashactivity.this);                 else {                  }             }         });     }  } 

edit 3 on restarting eclipse these error messages

the container 'android dependencies' references non existing library 'e:\drive\relevant\windowseclipseworkspace\facebook\bin\facebook.jar' main build path build path problem

the container 'android dependencies' references non existing library 'e:\drive\relevant\windowseclipseworkspace\main\bin\main.jar' rotiapp build path build path problem

the project cannot built until build path errors resolved rotiapp unknown java problem

the project cannot built until build path errors resolved main unknown java problem

when individually build facebook project or simplefacebook create .jar file, facebook project reverts java compiler 1.6. when switch 1.7, end errors saying r cannot resolved variable. want emulation run successfully!

figured out. in case falls similar situations eclipse ide, here best approach solving:

first start guide on installing facebook sdk https://goo.gl/0xgsys

if using simplefacebook on top of follow guide https://goo.gl/mggsge

if compilations still occur verify version of facebooksdk being used, in case our team using specific depreciated version of facebooksdk, downloading facebook's developer site wasn't helping, nor sromku's simple facebook repository. ended tracking right member of team down , having him email me both facebook , simplefacebook versions relating project.

the last thing causing app crash noobie move, turns out emulated devices don't have network issues, , in app's case constant data connex needed, else said app crash. problem way crashing looked similar coding issue, overlooked testing on real physical device. common knowledge in community worth re-iterating.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -