TRying to set up face book sdk - android

I'm trying to install the face book sdk and have all the projects showing up under my Package explore
Every project has almost evreyline of code as being a error.
I think the problem is that all the inports
except import java.io.InvalidObjectException; and import com.facebook.internal.Validate
have a error that says the import (name of inport) cannot be resolved. This is for both java sdk and android sdk.
I'm assuming if this is fixed all the remiaing errors will go away.

try this:
right click your project -> properties -> java compiler
select enable project specific , and select compiler comp level to 1.6
Perhaps this thread will help:
Android Facebook SDK import occurs with errors - Eclipse

Related

Zbar R cannot be resovled

I have just imported the zbar example project into eclipse. I have started the AVD, but when I go to run the zbar example I get a pop-up saying there are errors in the code.
When I went looking for errors the only ones I could find are the ones shown below
I removed the project from eclipse and re-downloaded the zip file and imported it all again but still have the same results. Has anyone else run into this problem ?
There are 2 R classes now in your app:
your own's app R class (from your app's namespace).
zbar's R class
You should either sort out the import instruction to make sure you import the right R class or use a full namespace in front of R.
The issue was with the wrong target build platform being selected when I was importing it.
Solution:
Right click on project->properties.
Select Android on left panel.
Tick Android 4.4.2

GoogleAuthUtil cannot be resolved

I am using Google Play Service's Authorization with GoogleAuthUtil in my Android applcation. I did this part about 2 months back, its been working perfectly fine then onwards. Yesterday, I updated the SDK. Now I am getting this error in my application. It says "GoogleAuthUtil cannot be resolved".
Has anything changed in the updated SDK?
How can I solve this?
I am importing the following:
import com.google.android.gms.auth.GoogleAuthException;
import com.google.android.gms.auth.GoogleAuthUtil;
import com.google.android.gms.auth.GooglePlayServicesAvailabilityException;
import com.google.android.gms.auth.UserRecoverableAuthException.
I am getting
com.google.android.gms.auth cannot be resolved.
Whenever you update any library make sure to first remove it from your references and again add it to your references. After that clean the project. Restart Eclipse if needed. And I feel then you are good to go!! :)
Just remove the <uses-library> tag from your AndroidManifest.xml and restart and clean everything. For sure it will start running.
If you are using Android Studio follow step below.
Open SDK Manager -> SDK Tool -> click on Google Play service and Apply
Open Module Setting or Project Structure -> on Dependencies tab click on + button -> select 1.Library Dependency ->Select play-services (...) then click OK
Clean your project by Build -> Clean Project

android Programming by using Eclipse Indigo Service Release 2

I'm a beginner of Android Application development need to practice by examples and samples given in the book "Beginning with Android" by Wei Meng Lee, but whenever I try to follow those steps I come across a few errors unable to clean them. The Error seems like this:
" setContentView(R.layout.activity_main);" Don't know what type of error is it. In my computer I've installed SDK API level 16 that is for Android 4.1 What to do? Please guide me through appropriate answer.
Remove import
import android.R;
Than clean build your project also check xml layout file name in
setContentView(R.layout.activity_main);
than it'swork fine.
You should get the latest version of eclipse. Its now Eclipse Juno.
And check your import.
Remove
import android.R;
Instead put
import android.packagename.R;

Android LVL won't Import into Eclipse

I'm trying to get the Android LVL (App Licensing) setup to work with my software... and I cannot get it to import into Eclipse at all. The documentation says, "add the library folder to your workspace"... but it won't let me. I have rev. 2 downloaded... but when I try to import the project (from /android-sdk-macosx/extras/google/play_licensing/library) it shows up greyed-out in the projects list and won't import. Can someone please help me out here?
Just drag the sources into your project. The intention of the LVL is that you build your own sources and make changes (to try to thwart people that modify your binary by looking for LVL-specific bits).

Eclipse cannot import jtwitter-yamba.jar in learning android

Im using Eclipse Juno and ADT 20 v2 My Yamba app which has no errors forces close immediately it is launched
My Logcat shows me in the Yamba app
Could not find class "winterwell.jTwitter.Twitter" referenced from method com.marakana.yamba.StatusActivity.onCreate
I know many people here used Yamba to learn Android programming and d Oriellys site has no solutions
Is it the "Twitter("student","password") API root.." That is causing this?
I was able to solve this error by doing the following in Eclipse:
Project -> Properties -> Java Build Path -> Order and Export
then select "[x]jtwitter-yamba.jar - /path/to/jar"
Before it worked though, I had to do:
Project -> Clean...
Then ctrl-F11 to rebuild
Try using the latest version of normal JTwitter. I think it's compatible with Yamba. You need to call Twitter.setAPIRootUrl() to point it at Yamba instead of Twitter.

Categories

Resources