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

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"

Related

building .apk from ionic project getting sdk certificate error

while generating apk from ionic project getting some sdk error as in given image
Can anybody tell how we make setup of android sdk
Thnks
Based on the error you are getting; it is safe to say that the problem is from your Android SDK. You need to update your Android SDK Platform and/or install Android SDk Platform Version 25. The Android SDK Manager helps you download the SDK tools, platforms, and other components you need to develop your apps.
To open the SDK Manager from Android Studio, click Tools > Android > SDK Manager or click SDK Manager in the toolbar. If you're not using Android Studio, you can download tools using the sdkmanager command-line tool.
When an update is available for a package you already have, a dash appears in the check box next to the package.
To update an item or install a new one, click the check box so it shows a checkmark.
To uninstall a package, click to clear the check box.
Pending updates are indicated in the left column with a download icon . Pending removals are indicated with a red cross .
To update the selected packages, click Apply or OK, then agree to any license agreements.
SDK Manager

Eclipse - Unable to view the Android Eclipse plugin

In Eclipse IDE I am trying to connect Android SDK to Eclipse.
I installed ADT plugin by,
Help - > Install new Software https://dl-ssl.google.com/android/eclipse
Then installed SDK by Windows - > preferences , Android SDK was also installed, but I don't see the "Android Application" in the menu as shown in screenshot. Also I don't see the "Android" option that should be available in the top right corner(as shown in the screenshot).
My Questions
Have I installed the ADT and configured Android SDK properly ?
Why am I unable to run the Android application ?
Please let me know if further details are needed.
You have to add a run configuration, then there will be displayed this added configuration.
Edit:
After installing the Android plugin in eclipise I needed to reimport the project, then everything worked fine.
Have you set your Android SDK path in Windows -> Preferences yet? that should be first step.
If you have already done that, then goto Help -> Install New Software and click on Already installed link. Check whether you can see ADT installed in the list of installed packages?

Cannot create a new Android Project using Eclipse

I recently updated my sdk version from 18 to 20.
I tried to create a new Android Application Project.
I filled up all the needed fields to create a new project but when I came to the last page of the creating a new Android Application Project, this appears:
"
This templates depends on the Android support library, which is either not installed, or the template depends on a more recent version than the one you have installed.
Required version: 8
Installed version: Not installed
"
Then it also displays this link.
http://developer.android.com/sdk/compatibility-library.html
It also has two buttons:
Install/Upgrade
Check again
When I click the first button, it's not downloading, installing or upgrading any of my software. And this messages display to my Console:
[2012-07-15 21:55:08 - SDK Manager] Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
[2012-07-15 21:55:16 - SDK Manager] Fetched Add-ons List successfully
[2012-07-15 21:55:16 - SDK Manager] Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
[2012-07-15 21:55:37 - SDK Manager] Done loading packages.
[2012-07-15 21:55:37 - Android Compatibility JAR not found:] D:\Software\Eclipse\v4\android-support-v4.jar
The button two does not do anything at all.
I downloaded the compressed file 'android-sdk_r20-windows' and extracted it to my hard drive. I used it to download the following:
Android SDK Tools
Android SDK Platform-tools
SDK Platform API8
Google APIs 8
I don't understand what my problem is, my eclipse works properly when I still haven't updated it yet. Did I forget do download some required tools or something?
Please help me.
Add: My eclipse works fine when I imported my previous Android Applications (my app runs on my emulator), the only problem is that I can't create a new Android Application.
I struggled with this for about an hour today and it started working. I think the key was to uninstall and reinstall the support library, then restart eclipse.
Note: I had to restart eclipse twice, after uninstalling the support library from within the SDK manager. Manually deleting the folder form terminal did not work for me.
Open SDK Manager.exe within the Android SDK r20 that you downloaded. In the list of software, scroll down to Extras at the bottom, and choose Android Support Library.
Step 1:
Open Android SDK Manager. In the list of software, scroll down to Extras at the bottom >> and choose Android Support Library >> Delete Package >> Delete complete restart eclipse
Step 2:
Open Android SDK Manager. In the list of software, scroll down to Extras at the bottom >> and choose Android Support Library >> InstallPackage >> Installl complete restart eclipse >> Done
Possible duplicate here. This is strange but works.
Go the SDK_Folder/extra/android and rename the folder compatibility to support. After that, restart the Eclipse.
Following steps worked for me:
Goto Help > check for updates > Select Android Tools Development and install it
Restart Eclipse
Eclipse asked me to update Android SDK Tool. I clicked on ok
Android SDK Manager opened and I selected the options to install and update.
After finishing, I restarted eclipse and created new android project.
Delete the Android Support Library from Extras-Android support Library..Then install it again..later you will be able to create new projects
Workaround that worked for me:
- Delete the support library from the SDK manager
- Create a new project & install the support library by clicking on "Install / Upgrade"
In fact I think there is a bug with the Text icon creator. Every time i try this it does not create the project properly even after doing all the re-installs as suggested by the other posts.
I was having this problem on one machine, when logged on with an account with limited admin privileges. I had set up the proxy details in the SDK Manager options menu and set it to force http instead of https. The extras folder was coming up empty.
In the log I had a message saying that it failed to download "https://dl-ssl.google.com/android/repository/addons_list-2.xml" as the file was not found. I then went to tools->manage addon sites, then under user defined sites I added the URL "https://dl-ssl.google.com/android/repository/addon.xml" (Different from the file mentioned in the log but it seemed to work). When I exited that dialog it updated the list and the extras folder was now populated with items including the Android Support Library.
i had some problem. So for resolve this problem I change folder tools (adt-bundle-windows-x86_64-20130911\sdk\tools) by http://dl-ssl.google.com/android/repository/tools_r22-windows.zip

How Google Cloud Messaging Service in Android Works?

I want to use GCM Service in my application.
I have referred to the following link (Android Developer: Google GCM) but was not able to install the GCM Library in my eclipse.
From the SDK manager I am not getting GCM Library in the Extras Folder.
Can anyone please help me?
I had similar issues and it was resolved once I updated Android SDK Tools to revision 20 and Android Platform SDK Tools to revision 12. Rev 19/11 would not shown up Extras > Google Cloud Messaging for Android Library in SDK Manager. And make sure that you restart SDK manager after updating.
It should then show up in SDK manager as shown bellow:
For me just an update don't work. But try to download and install new Android SDK from http://developer.android.com/sdk/index.html. After installing this it finally shows me new libraries in extras.
Go to Help->Check for updates, and update your eclipse. After update you will get "Google Cloud Messaging for Android library" in Extras
Or use in path-to-android-sdk/tools/
./android.bat update sdk
i had the same problem i solved it by:
First Close SDK Manager.
Then open AVD Manager click on "Tools" > "Options" And then click on "Clear cache"
then close AVD Manager,And open SDK Manager and click "Packages" > "Reload"
And there is it API 16(Android 4.1 JB)
And At Extras "Google Cloud Messaging for Android libary"
0pen Android Skd manager,Go to Extra and Install the Google Clouds messaging for android.
After installation,open the Android SKD->Extra->google and import the gcm project to your IDE
Now you have gcm.jar in libs folder.

No android platform shown in SDK Manager on Mac

I have installed Android SDK from http://developer.android.com/sdk/index.html.
I have created the .bash_profile and updated it with the path where i have the "android-sdk-macosx" folder.
But when I open the SDK manager to install a platform, it does not locate it. I connect using a proxy, which I have entered in the Preferences.
Kindly help.
Should I install some other SDK version. Are there any compatibility issues ? Why does it not connect to the internet in spite of mentioning the proxy settings.
You should make sure the sdk is configured in the eclipse preferences
Configuring the ADT Plugin
After you've successfully downloaded the ADT as described above,
the next step is to modify your ADT preferences in Eclipse to point to the
Android SDK directory:
Select Window > Preferences... to open the Preferences panel (Mac OS X:
Eclipse > Preferences).
Select Android from the left panel.
You may see a dialog asking whether you want to send usage statistics to Google.
If so, make your choice and click Proceed. You cannot continue with this
procedure
until you click Proceed.
For the SDK Location in the main panel, click Browse... and locate your
downloaded SDK directory. Click Apply, then OK.
Done! If you haven't encountered any problems, then the installation is complete.
If you're installing the Android SDK for the first time, return to Installing
the SDK to
complete your setup.*emphasized text*

Categories

Resources