Severity Code Description Project File Line Suppression State
Error Could not install package 'Xamarin.GooglePlayServices.Gcm 42.1001.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0
Try to install this package:
Xamarin.GooglePlayServices.Gcm -Version 29.0.0.2
I had the same problem. I installed Xamarin.GooglePlayServices.Base 29.0.0.2
it works
You need to install version 29.0.0.1
I too have the same problem
the visual studio used - 2015
target framework - 7.0
install Nuget Google play map service tried to install 29.0.0.1/32.x.x.x/40.x.x.x/ 60.1142.0 nothing works
2 days to fix this issue...
Many things I checked as follows.
Check the VS Android SDK manager whether targeted SDK is installed or not
open -> Android SDK manager in VS -> go to extras -> install Google play services
go to tools in VS -> options -> xamarin -> other -> click now for check for updates and restart the system not VS only.
build your projects if google map again showing error, just select the google obj and press show potential fixes then take the last option as Using Android.gms.map which is already mentioned in the code.
I hope this will fix because it's worked for me.
Related
I am trying to add Android Q using AVD manager but it says: "Package "Android Emulator" with revision at least 28.1.9 not available." Has anyone tried this before? what should I do now to resolve this.
Thanks to #JulianC I also set the emulator. I tried to download it standalone from the official site, but couldn't. Then switched to Canary Channel. I pressed Tools > SDK Manager, then Updates label and changed channel. Also pressed Check Now button and dismissed a dialog (Remind Me Later).
Then switch to Android SDK and updated needed emulators.
Then reverted back to Stable Channel.
After several days of work I faced some visual bugs in the emulator. Sometimes I have to restart virtual devices from AVD Manager with Cold Boot Now:
Sometimes I recreate virtual devices in AVD Manager.
Based on https://developer.android.com/preview/release-notes:
Note: If you try to download the Android Q Beta 2 emulator system images from within the emulator, you will be prompted to download the latest version of the emulator. If you are on the stable channel of Android Studio releases, then you might need to switch to the canary channel to be able to download this latest version of the emulator. You do not need to download all of Android Studio from the canary channel—you can download only the emulator from the canary channel from within the SDK Manager.
You have to use the Android Studio Canary build to get an updated emulator. This worked for me
As stated in the other answers, installing the update from the canary channel solves this problem. However, if you don't want to install Android Studio from canary channel, you can just use the sdkmanager tool. Just run this in the terminal:
sdkmanager --update --channel=3
************ EDIT ****************
Today I found version 29.0.6 available in stable channel.
Just click "Check for Updates..."
I found kind of solution.
Go to Preferences -> Updates
Select "Canary Cannel" and click "Check Now"
Dismiss the updates "Remind me Later"
Go to Preferences -> Android SDK -> SDK Tools
Click 3 times on "Android Emulator" checkbox (The state on the checkbox will be the same like in the beginning)
Go again to Preferences -> Updates
Select "Stable Channel" and click "Check Now"
Install recommended updates (android emulator to 29.0.3)
Also you have to download Android Q Preview from Preferences -> Android SDK -> SDK Platforms
It works for me.
Hope to help you :)
For a more recent answer:
Those installing from snap:
The reason is listed here:
This happens because Android Q is still in beta and therefore it’s only be available
through the Canary and Development channels.
The solution is to download Android 3.6 from here.
For anyone who bumps into this issue whilst using Android's Command Line tools, --channel=3, at least on Windows, will not actually net you the latest version of the Android emulator, and thusly as it is dependent on that Emulator version, the latest Android images (particularly google_apis_playstore;x86 v8)
As a workaround, I was able to manually install the package by fishing around in the repositories here:
https://dl.google.com/android/repository/repository2-1.xml
I was sufficiently annoyed about having a broken tool that I made a lightweight Python tool to do the steps below for most any package, which is what I link below under automated version.
This will also work for the Android Studio versions in theory, but I haven't tested those personally. Your mileage may vary.
AUTOMATED VERSION
Clone or otherwise download this repo: https://github.com/FailSpy/android-sdk-alternative
With Python 3.6+ installed, go into the folder you cloned it to with your commandline, and run python downloadtools.py emulator (or any package name if you're looking for other packages)
That will then download and unzip the latest package for you in the location of your SDK (using env. variables ANDROID_SDK_ROOT or ANDROID_SDK_HOME)
MANUAL VERSION
To make this easiest, you'll need an existing install of the emulator
To find the latest version download URL:
Find on that XML file a <remotepackage> tag with path="emulator" featuring inside it the <channelRef> tag with 'channel-3' -- which signals latest version, locate the 'url' tag for the latest version for your platform (currently, emulator-windows-6549980.zip) and add that to the end of the previous URL -- replacing 'repository-2-1.xml'
e.g. https://dl.google.com/android/repository/emulator-windows-6549980.zip (if you're not too far from the future, you can just use this link rather than digging -- just replace 'windows' with 'darwin' for MacOS or 'linux' for Linux)
Take note also of the major, minor, and micro tags in the archive as well. We'll need this in a moment. In this case: 30, 0, and 16 respectively to make version 30.0.16
At that point, find your SDK install location
Find your currently installed emulator package in there under folder emulator, and edit your package.xml. Replace the major, minor, and micro with the version you found in the repo (or lazily with the version you know you need, though I don't recommend this)
Finally, delete the existing install (making sure to keep your edited package.xml!) and unzip your downloaded file into there, replacing your install.
Your SDK Manager should now recognize the emulator install as the version you set, and allow you to install the latest images.
I am trying to add a map on the Xamarin.Android application. So far, I have added only map, I did not add any location listener. However, I keep getting the following error
package,com.google.gms.location does not exist
I wonder what I am missing or doing wrong?
Here is the dll's added into the references from the nuget
Make sure all packages are of the same version (27.0.0)
Make sure Xamarin.Build.Download is installed (it downloads the required .jar files etc.)
Clean & Rebuild the android Project
Try entering Update-Package -Reinstall Xamarin.GooglePlayServices.Locationinto the package manager console
Clean & Rebuild the android Project
Try a higher version number of the package (newer ones are stable too)
If you want to use GooglePlayService. The test device/emulator of your app needs to include Google API. If you are using an emulator you can follow the steps below:
Download Google API System Image for your android API Level through Tools->Android->Android SDK Manager(ex for API Level 25 ):
Create a new Google API Emulator through Tools->Android->Android Emulator Manager->Create:
Clean your project and rebuild it, run your project in this emulator.
I'm trying to setup Android Studio on a new install of Mac OS X Yosemite. I downloaded the Android Studio Beta v0.8.14 from here: https://developer.android.com/sdk/installing/studio.html and upon launching it complained about not having an SDK (although the download page indicates it should include the SDK). I tried searching after installing for the SDK and can't find it (a few other posts indicate /Applications/Android Studio.app/sdk but that location doesn't exist). Where is the SDK installed and what is required to set it up?
Go to the SDK Manager and click Edit... next to the field for the location of the SDK. Then an "SDK Setup" window should display. There you can download the SDK.
Edit: This answer is deprecated as Android Studio seems to bundle everything since a while already.
Old answer
It seems the android-studio-bundle version is no longer available in the download page (instead there are only android-studio-ide). When you start Android Studio, it won't let you create a new projet until you configure the SDK location.
That means you have to download the SDK separately here, extract it somewhere, and configure it on Configure->Project Defaults->Project Structure. After that, the SDK Manager icon will be enabled and you can download the tools you want.
I had the same problem on Windows. After I re-installed it a few times, I found that the SDK was installed but hidden in C:\Users\<user name>\AppData\Local\Android\sdk.
Information for Windows
For some reason, which I have no time to investigate, Android seems to provide, currently, the IDE and the SDK separately, while in the Dev Webpage says the opposite.
This is the "complete" (false!) tool I have just downloaded: android-studio-ide-171.4443003-windows.exe (SDK is missing here, note the "ide" in the file name).
And this is the real complete tool I had downloaded few months ago, from the same place...: android-studio-bundle-162.3871768-windows.exe
Note that this last one has the "bundle" in the file name.
Please, download the bundle (IDE+SDK) from here:
https://dl.google.com/dl/android/studio/install/2.3.1.0/android-studio-bundle-162.3871768-windows.exe?hl=ko
I want to suppose (¿?) that similar link you can find for Linux or macOS just Googling for it.
Hope this helps!
It worked like this for me
Downloaded the Android Studio
Install Android Studio
Open Android Studio after installation.
You will get a dialog box to import settings if you already have Intellij installed on your machine. Say "Do not Import". Otherwise continue to next step.
It will ask you in the dialog box to pre-configure such as theme, path etc.
Just click next next...and then Finish. You will see the SDK tool will start downloading.
After installation is finished. You can find it in this path: C:\Users\<user name>\AppData\Local\Android\sdk
If you have ever installed Android Studio before and then removed it, it won't reinstall the SDK automatically (speculation: some Windows setting somewhere).
The solution is starting Android Studio and then
File -> Manage IDE Settings -> Restore Default Settings
This will wipe any custom settings you don't have at this point and trigger the SDK install
What Pablo wrote is misleading.
This is the "complete" (false!) tool I have just downloaded:
android-studio-ide-171.4443003-windows.exe (SDK is missing here, note
the "ide" in the file name).
Yes, it is IDE only, but after you install this IDE and first time run it, SDK will be downloaded automatically. So there is no need to download some outdated bundles. Just use default "green button" on https://developer.android.com/studio/index.html
I'm using Ubuntu, and had previously installed Android Studio. It was using too much space, so I deleted it. Now when I downloaded it and started ./studio.sh, it found my previous installation configuration directory and asked to import from there. I did, and then this problem occurred.
I put the directory .Android Studio 3.3 in the trash and restarted ./studio.sh, and it imported the SDK automatically for me. That was good, because I couldn't find it where it was supposed to be according to the dialog box. The 3.3 above is from the version of Android Studio I was installing.
in my case, my country is forbidden from google, and my PC's time zone was set by my counrty.
after I change my timezone to another country my problem solved and android studio download SDK and nkd easily
Re-install studio. If ANDROID_HOME is set to custom location then it will install sdk there else it will install SDK in C:\Users<user name>\AppData\Local\Android\sdk
Note:this is a temporary fix
If you have Eclipse then you can use that SDK for emulation.
Just run the sdk manager and emulate a version of android. Then while you are asking for emulating something ie while running code it will show your emulator as online and you can even use it.
Hope this helps you.
All the Best...
I have updated the Android SDK and I have installed API 17. I also updated the ADT Plugin to 21.1.0. However I'm facing a problem : when I open eclipse a message keeps appearing :
The Android SDK requires Android Developer Toolkit version 21.1.0 or
above. Current version is : 21.0.1.v201....(& another numbers..).
Please update ADT to the latest version.
I click Check for updates --> Then appears a message :No updates found
And another message appear: No repository found at jar:file:/C:(...)/ADT-21.1.0.zip!/.
I cannot start the avd because all the applications have errors.
I also tried to install it manually by downloading the zip file ADT-21.1.0 -> Help -> Install New Software... -> Add -> Archive....(this is the way that I updated the Plugin in the first place) , but it says that everything is updated !!
Any ideas? Thanks.
I do not know the reason but the following helped me in the same situation.
Go to Help -> Install New Software
Use (add if not exist) Android Developer Tools Update Site (http://dl-ssl.google.com/android/eclipse/)
Uncheck "Contact all update sites during install to find required software" option
I had this problem before - Solved it by using an updated Eclipse with a new installation of the ADT (installing it like Serkan has suggested, instead of using the Marketplace).
https://dl-ssl.google.com/android/eclipse/
The Site is https not http. So make the necessary change, it should work
The problem is it is looking for an update repository which does not exist on your c drive.
It got stuck on c because you loaded a zip.
fix by going to help software install then click available software sites and remove your local drives.
I am new to android development.
Have tried a couple times downloading the Android SDK and ADT plugin for Eclipse
In the Android SDK and AVD manager load fine but will not load any available packages.
Show:
- Android Repository
--"Some packages were found but are not compatible updates"
In the installed it shows 1.5 to 2.3 SDK platforms.
How to I get them available.
Appreciate help.
Thanks,
Alex
You can use following step:
1. window ->
2. customize perspective ->
3. command group availability tab ->
4. on the check box android SDK and AVD manager check it ->
5. click on ok
I had the same issue. Googled arround found nothing, and gues what:
It was the a checkbox in the main Android SDK and AVD Manager.
Click: available packages
Then select: Android Repository
Then you see the "some packages were found but are not compatible updates" message, which is why you created this question.
On the bottom of the form, you can see: 4 buttons and 1 checkbox.
Make sure you Uncheck: "Display updates only" when it is unchecked, you see the whole SDK list with Android 3.2 etc.
Steps for installing Development Environment.
Download Android SDK and Install it.
Install Android API’s for different android versions. The latest version is Android 2.3.
Download and Install Eclipse Install ADT plugin.
Create AVD (Android Virtual Device) for testing the applications.
I think you did not linked your Android SDK folder with Eclipse ADT plugin. Goto Window->Preference->Android browse your Android SDK if you have installed ADT plugin.
There are many resources available online. Here is a blog post where you find some good links to resources which help you in installing Android Development Environment.
Getting Started with Android
If you still didn't able to do it. Let me know your specific problem, where you got struck.
I think there is already an answer that probably works for most people (unchecking the box), but since that did not work for this install I have on Linux Mint, this did work:
(not my website)
http://blog.netscribe.us/blog/post/Step-by-Step-Guide-on-How-to-Install-Android-SDK-Offline-%28not-completely-offline%29.aspx
Basically, download the zip for the package you want and extract it to /platforms/.