Not able to install facebook android sdk in xamarin android application - android

I am working on xamarin android application.When I try to install facebook android sdk in my application it takes too much time and at last it stops with : some required packages are not referenced by the project.
And if I download facebook-android-sdk from facebook developer account then how to add it to my application ?

Try adding it through the NuGet package manager:
Right click the packages folder in your project
Select Add Packages
Type Facebook SDK Xamarin Android in the search box
Double-click the package
This should install the SDK and all its dependencies. All you need to do now is resolve it's namespaces and you should be good to go. You can check the Package Console pad for any errors.

Related

Error in build for Xamarin Android when adding Google Map

I have an android xamarin project, and I only add Xamarin.GooglePlayServices.Maps nuget.
my build has this error :
error: package com.google.android.gms.maps does not exist
com.google.android.gms.maps.OnMapReadyCallback
Please try this :
From the Tools menu, select Open AVD Manager
From the Tools menu of the Android Virtual Device Manager app, select
Manage SDK..
For each of the Android SDK you are targeting, check the "Google
APIs" checkbox and install the packages.
You should now have the Google Maps SDK installed.
I installed Google APIs , and Google play service, but still I got the error.
I check this path
obj\Debug\__library_projects__\Xamarin.GooglePlayServices.Maps\library_project_imports
and the folder was empty, this folder suppose to have .jar files for Google Map.
So I delete obj folder and now everything's working.

Can't select Facebook SDK as a Library

I'm using phonegap/cordova on eclipse to build my app. I'm also trying to use the facebook sdk. I downloaded the android SDK and imported the facebook folder correctly. I'm receiving 300+ errors and I know it is because it is not linked. I right-clicked my main project -> Android -> but facebook is not being listed as an option.
How do I link Facebook SDK to my project?
Why don't you want to use facebook js sdk and include it in your web app. Then whether you build your app for ios or android it will still work.
https://developers.facebook.com/docs/javascript
Or
http://phonegap.com/blog/2013/04/18/pg-facebook-plugin/

why can't I install Google Cloud Messaging for Android Library

I'm following the instruction about using gcm here http://developer.android.com/guide/google/gcm/gs.html, and I'm stuck at the following step:
Install the Helper Libraries
To perform the steps described in the following sections, you must first install the helper libraries (reference: client and server). From the SDK Manager, install Extras > Google Cloud Messaging for Android Library. This creates a gcm directory under YOUR_SDK_ROOT/extras/google/ containing these subdirectories: gcm-client, gcm-demo-appengine, gcm-demo-client, gcm-demo-server, and gcm-server.
In my SDK manager, I can't find the option: Google Cloud Messaging for Android Library, as I captured in this screenshot , what I should do to resolve this? Thanks
I had this same issue. You must update EVERYTHING else in the Eclipse plug-in before GCM will show up. Force an update from the sdk manager and it will show up once the version is current.
Use the Android SDK Manager to update your SDK to r20, after which you'll also need to update your Eclipse plugin. You'll then find the Google Cloud Messaging for Android Library under Extras in the SDK manager, along with everything else. Just select what you want to install.
And if following error comes :- android sdk manager nothing was installed
Then
Go to the folder where android-sdk resides.
Right click on SDK Manager and select run as administrator.
Restart eclipse.
Run Eclipse
Go Eclipse Menu ::
Help >> Install New Software
in the Install Window setting like this
If youe select "Work with " list box ADT Site
:: my case is like that "ADT Site - https://dl-ssl.google.com/android/eclipse"
Check all
Develop Tools
NDK Plugins
and Next and finish...
Now go to "Android SDK Manager" window
You will see in "Extras" category and "Google Cloud Messaging for Android Library"

Installing ANDROID sdk on a MAC OS X

I've been facing issues with my installation of Android sdk on my MAC.
As instructed on the google website I've followed their instructions to install
ADT Plugin
Android SDK
Eclipse platform
The installation is not on this order but as directed by the website. After installation I followed the instructions to create a .bash_profile(it was not present on my computer) and I updated it with the directory settings. Now I've installed it and set the path folder on Eclipse using the preferences->android. When I click apply and I exit I get an error stating that Android component is missing. Also to note that the android sdk->platform is supposed to contain an adb is empty.
I used this question's solution and yet I get the same error
Thank you for your input
UPDATE: It asks me to use the SDK manager to install I am unable to locate this component
It sounds like you haven't installed any actual Android SDK platforms.
Go to the tools directory of the Android SDK and run android. The Android SDK manager GUI will appear allowing you to install an android platform. Click on available packages, expand Android repository, and install the platform versions you want.

No build target while creating new project

I am a .NET developer and I wanted to work on mobile development though Java. For this I have download eclipse, SDK, Android SDK, ADT plugin and Phone Gap as mentioned in this URL.
http://www.phonegap.com/start/#android
For me everything went successful. But when I am trying to create new project I am getting below Screen:
My Questions:
Why I am not getting any build target? Am I missing something?
What is Package Name ?
What is create Activity?
I apologize if you find my questions very small or useless but as a beginner these are very important for me
Edit1
Android SDK Installation
Edit2
When doing Window > Android SDk and AVD Manager
You need to install the Android SDK and install an Android platform package. See this guide to installing the SDK: http://developer.android.com/sdk/installing.html
If you have already installed the SDK then you need to follow step 4 from that guide to install a platform.
From within Eclipse, select Window > Android SDK and AVD Manager.
Choose a platform - ie 2.2, 2.3 etc:
Re: Edit #2 above, go to Eclipse Window->Preferences and configure your Android SDK to point to your SDK folder, looks like d:\program files\android\android-sdk\ from your screenshot
Package name is your starting folder structure to create.
Create Activity creates an initial activity class for you within your package

Categories

Resources