How to install the Bumblebee 2021.1.1 Android Studio Patch? - android

When I open Android Studio I receive a notification saying that an update is available:
The latest stable release of Android Studio is now available for download.
Android Studio Bumblebee | 2021.1.1 Patch 1 is a major new release and includes performance improvements, bug fixes and new features.
- Intellij 2021.1.1 Platform Update
- New Device Manager
- ADB over Wi-Fi
- Run Instrumented Tests in Android Studio using Gradle
- Android Gradle Plugin Upgrade Assistant now updates API usage
- Non-Transitive R classes on for new projects
- Apple Silicon Support Update
- Jank detection track in Profilers
- Profileable app profiling support in Studio Profilers
- Network Inspection and ability to capture Layout Inspector snapshots
- Support for Compose semantics in the Layout Inspector
- Interactive Preview
- Animated Vector Drawables Preview
- Updated Device picker for Design Tools
Important After updating, you need to restart Android Studio to apply any memory settings you migrate from an earlier version of the IDE.
Release Notes
However when I click on the Download button it opens a web page to re-download the whole program instead of updating it. It's a bit confusing because it's a minor update.

This issue was fixed by Google (10 February 2022).
You can now update Android Studio normally.
Thank you all for helping to bring this problem to Google's attention.

The problem was fixed.
You can now update through the IDE without any webpage redirects or workarounds.
https://issuetracker.google.com/issues/217880228

Download and install JetBrains Toolbox. Android studio patch update will show in the toolbox list. Update through this. Hope its helpful.

As written in the issuetracker (217880288):
Workaround: delete manually only the "C:\Program Files\Android\Android Studio"-folder and then install AS again. All your preferences will be restored because they are saved in your profile folder.
This worked for me.
However I for my part only renamed the old Android Studio folder and will keep it for a few Versions just to be have it in case of problems - but I didn't notice any problems yet.
P.S.: I readded the folder as exclusion from Antivirus, even if I do not remember well if this is still helping performance.
P.P.S.: Before I also tried the JetBrains Toolbox way to update AS, it said it installed the patch - however I still got the messages afterwards and it was still using old gradle.

Related

Package "Android Emulator" with revision at least 28.1.9 not available

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.

Android Studio 3.2 layout "preview" not emulating material design components properly

I've been updating my project to target sdk-api28 and I started setting up the latest MaterialComponents, but I'm now having issues with the layout Previewer within Android Studio.
The Preview just won't display the correct design for the material components, eg. adding style="#style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" on a TextInputLayout view won't change the design (no outlines) in the emulated preview, but it does look okay when running on a phone (got outlines).
Here's how it should and does look when running on phones:
But here's a screenshot of how it looks in the Android studio's Preview.
I'm having this issue on any project, and even on the Shrine tutorial app with the same setup from MDC Codelabs (MDC-103(Java) - Shrine).
This happens only on the preview. Any of these projects, when running on a phone or on the emulator within Studio, look okay.
As much as I could 'think through' this, the issue is I believe somehow connected to my Android Studio, emulator, or maybe build tools versions? Please, could someone point out if I'm missing something very simple?
My Android Studio (sdk, tools etc) versions that I have installed:
Android Studio 3.2.1
Android Emulator 28.0.16
Android Platform Version: API 28: Android 9 (Pie) revision 6
Android SDK Platform-Tools 28.0.1
Android SDK Tools 26.1.1
This issue happaned to me in android studio 3.2.
after one day everything gose fine.
what i do was invalidate and restart. reset android studio default settings
the clean. and exit android studio and open it again. and it works fine
this is a bug not related to you only.
While some users who experienced similar issues, could solve this with cleaning out Android Studio cache and config, this didn't work for me.
After looking into various possible fixes and tips, I solved this by updating to Android Studio 3.4 Canary which is the latest non-guaranteed-stable version of Android Studio, which you can get by either downloading a Preview release (here: developer.android.com) or changing your update preference (within Android Studio) ie. Update channel to Dev channel or Canary channel within Android Studio Settings > Appearance & Behaviour > System settings > Updates
I do think that this might not be a proper fix, but it's the only thing that worked out for me and solved the layout (design) preview not being able to display correct design.
If someone else runs into a similar issue, make sure to first try out clearing cache, using the Invalidate and restart under File menu or any other method. The Invalidate and restart feature clears out cache and restarts android studio, after which it will have to sync again and check for all dependencies, Sdk, tools etc.
Also to avoid this issue, before trying out anything else make sure you have proper and latest SDK Build-tools, Emulator, SDK Platform-tools, SDK Tools versions installed.
I'll leave this here as an answer for now, and update it if any new solutions come around.
Sorry, I'm here 3 years late... But this was my solution for this render problem... It has Material.Light theme by default. If you change it to Light.Bridge the problem is solved!
Hope it helps some one

How to resolve : unexpected error occured Initializing Android Designer" in VS 2015 with Xamarin

Bringing up a new PC with Xamarin and VS 2015 Pro I received the following error:
An unexpected error occurred trying to initialize Android Designer.
Please verify the Android SDK path and the Java Development Kit path
on Tools->Options->Xamarin->Android Settings menu. Please see the logs
for more details.
I verified the SDK's are installed correctly. VS didn't generate any kind of Activity Log so I believe the log must lie elsewhere. Anyone know where I can find this log to find out more about what is wrong ?
I had exactly the same problem described (on a new PC, with a new Visual Studio install) and am 99.9% sure the answer is in how updates are applied. Or, more importantly, how they aren't being applied when you think they are.
Go to Tools | Options | Xamarin | Other, and under Xamarin for Visual Studio Updates, Check now for STABLE updates. Make sure you're running at least 4.2.0.680. You will have to close Visual Studio in the background as the updater is running--it'll warn you. Uninstalling and installing the cross-platform development tools from Visual Studio was not applying this update for me. I had to force the issue.
Now, as mentioned earlier, go to Tools, Android SDK Manager. I noticed my "Android SDK Tools" and "Cross Platform Tools" were out of date and updates were available. I accepted and applied the updates to version 24.4.1. BEAR WITH ME, THIS IS WHERE IT GETS TRICKY--it still didn't work.
Go back to Tools, Android SDK Manager. I immediately noticed that even though I'd just applied the latest update for "Android SDK Tools", (24.4.1), a new version (25.2.2) was now available, along with 17 other updates. I accepted them all.
Bingo. Where I once had the annoying error message and an empty design surface and an empty toolbox with the sad "no usable controls" message, I now have the attached screen snapshot--a design surface where I can see a visual representation of my .axml, and a toolbox from which I can drag and drop controls and they actually show up on my Samsung tablet.
Sorry so verbose. I lost hours on this problem and thought others might appreciate another working solution.
I had a similar problem as explained below.
Here a solution that worked for me:
1) delete the one package appearing in the screen shot below.
Nota bene: At this stage VS 2015 greyed out the Android SDK manager buttons, even after a restart.
2) download installer_r24.4.1-windows.exe for windows https://developer.android.com/studio/index.html
3) launch the Android SDK Manager outside of VS and install the proposed 19 packages. This time I could go through the installation.
4) Launch VS 2015 and create Xamarin Android project. Launching Main.axml would launch the designer properly on an android project.
The bug I had
I had the same problem here on a fresh install of Win10 + Full visual studio community 2015 update 3 + .Net Core + Azure SDK and Xamarin. Creating a new project Xamarin Native (iOs + Androird) shows up the same message as mentioned by MikeJ. In addition, running in debug F5 makes the designer have a new popup
Problem seems to appear also here
https://bugzilla.xamarin.com/show_bug.cgi?id=44374
and here
https://forums.xamarin.com/discussion/77669/how-do-i-fix-this-error-the-installed-android-sdk-is-too-old-version-25-1-3-or-newer-is-required
.
Opening the Android Manager does not show up version 25 as an option, instead it shows this
However, we cannot install (greyed out button even by accepting license)
Updating Xamarin did not work neither How to update Xamarin for Android within Visual Studio Community 2015
Some guidance would be great to understand what happened.
I had the same problem (when bringing up a new PC with Xamarin) and after a few days I solved the problem.
I moved sdk directory from "C:\Program Files (x86)\Android\android-sdk" to "C:\android-sdk". Then I opened the sdk manager and made updates. It's all.
I think the problem is with the path, which has space :)
I was able to to fix the issue by opening the Android SDK Manager and updating all the tools to the latest version.
If you are already using Android Studio in your computer then this might solve your problem.
Check whether SDK is already available at some other location. That worked for me. To check SDK path- Open Android Studio-> Click on SDK Manager Icon. Check Android SDK Location. Copy that path.
In Visual Studio-- Open Tools->Options->Xamarin->Android Settings menu and replace the new SDK path. It will automatically ask to download the updates. Install all packages and you are done!
before you go through all that trouble (and I went through many convoluted steps myself for several hours) please try run your VisualStudio as administrator and see what happens!
It solved the above issue (and then some) for me. I used fresh WIN 10 and VS2015 Community install and I must have set some of my permissions to tight.
Also I learned that updating my NuGet package: Xamarin.Forms (v.2.3.3.168)
solved errors related to:
System.MissingMethodException: Method Android.Support.V4.Widget.DrawerLayout.AddDrawerListener not found.
But that is another issue all together.
Adding these two references to Droid.csproj and packages.config fixed the problem for me:
<package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="23.3.0" targetFramework="monoandroid60" />
<package id="Xamarin.Android.Support.Vector.Drawable" version="23.3.0" targetFramework="monoandroid60" />
Another issue to be aware of is that you need to have Java Development Kit 8 referenced in Xamarin, instead of JDK 7. You can set this is Tools > Options > Xamarin > Android.

Android Studio freezes after updating to 2.0

I have just updated my Android Studio from 1.4 to 2.0, on startup it freezes on splash-screen. is it possible to fix it or i have to download it again?
Its very strange. I have also updated to 2.0 in my MAC, Ubuntu and Windows 10. I didn't feel any issues till now in any of these.
Please note that 2.0 is still a preview. You may have to wait till Google releases the stable version.
Which operating system are you using?
For Windows, check the log of
C:\Users\<Username>\.AndroidStudioPreview2.0\system\log\idea.log
and paste here the last relevant entries on the bottom with a recent timestamp, containing an error message or indication of a possible freeze.
Also, check that you don't have any Android Studio, IntelliJ, or java-processes running before you start Android Studio.
This is an answer for my question, after trying many methods now it works fine.
This is how i resolved my problem by:
Updating Android SDK Tools and the latest SDK Platform
Removing the Android Studio cache folder situated in
C:\Users\<username>\.AndroidStudioPreview2.0
Running android studio again
At First Update Your Android SDK Tools (Support Repository )
Actually Android Studio creates a local directory . AndroidStudio to
cache its own data. In most environments, this is acceptable. However,
the size of the directory can easily exceed 300Mb and, if you have a
space constraint on your home drive (or a roaming profile in windows),
this may be better off in some other place.
The location of this directory is placed in an idea.properties file in the bin/ directory of your AS is installed.

Is it time to upgrare to eclipse to ver 3.6.xxx

About 2 months ago I was setting up an Android development environment, and noticed a warning on the Android SDK page that stated "There are known issues with the ADT plugin running with Eclipse 3.6. Please stay on 3.5 until further notice." - so
I posted a question here about this and from the responses decided, to install Eclipse ver 3.5
I never saw a notice that it was safe to upgrade, but...
- The warning is now missing from the Android SDK page
- I thought I read (maybe I'm wrong, because I can't find it now) a comment that some of the Android tutorials were now assuming Eclipse ver 3.6.1
Can I assume it is now safe to upgrade to Android 3.6.1 ?
The Eclipse IDE for Java Developers download page still seems to be at 3.6.0 ?
Comments Welcome
I believe it is fine, i upgraded my desktop environment to 3.6.1 and everything seems to be running fine.
Confirmed: Here is the link to the requirements page. It now says anything greater than 3.4 will work.
Eclipse 3.4 (Ganymede) or greater
Eclipse Link Requirements
I upgraded to the latest 3.6 and it was OK except that the content assist for the Android classes was very slow, i.e you would type 'textView.' (where textView is a TextView) and wait for ages for all the available methods to be shown.
This issue is a known bug reported at
Code Assist still Slow
Down near the bottom of this thread, someone identified a fix:
*https://bugs.eclipse.org/bugs/show_bug.cgi?id=329288 contains patch
that fixes this issue.
Unfortunately patch is applied only in 3.7 branch.
I have patched org.eclipse.jdt.core from Helios 3.6.1 with the patch
attached in this bug and create a patched plugin.
You can replace your /plugins/
org.eclipse.jdt.core_3.6.1.v_A68_R36x.jar plugin with one from
http://adt-addons.googlecode.com/svn/patches/org.eclipse.jdt.core_3.6...
and restart Eclipse. Content Assists will be much better. Just try it.
Don't forget backup your original plugins.
Peco*
I applied this patch and everything works fine now.
I always used Eclipse Helios 3.6.1 for my android programming and I never had any problems, I don't know what the problems were but I didn't find any. Sometimes my R.java doesn't seem to connect with my other classes but I solve that by either restarting my Eclipse of just clean my project, most of the times clean project works perfectly.
The ADT plugin also works fine. It upgrades correctly and I can see all my versions when I create a new project
I did see people having project to even install the google ADT plugin when looking for new software but I didn't come accross that problem. It just installed the first time. with the new update however it seems that my adb.exe doesn't seem to be in my tools folder and Eclipse looks there, so I just copied it from my platform-tools to my tools folder and got it working.
When I tried to update the 2.3 sdk to 2.3.1 in Eclipse 3.6.1, I had to clean all my projects as well as start Eclipse several times before everything could be installed successfully. Other than that, I've had no problems at all.

Categories

Resources