Android Studio Crash on Code autocomplete - android

Android Studio Crashing after press "Ctrl + Space"
System Config - macOs Catalina 10.15 Beta
Android Studio - 3.4.1 and 3.5 Beta 5
I have already tried
Invalidate Caches/Restart

A workout around is to add -Dsun.font.layoutengine=icu to the VM options.
Which you can do via Help > Edit Custom VM Options.
Source: https://youtrack.jetbrains.com/issue/JBR-1639

Yes there is issue in All intellij IDE causing crashes on Mac Os Catalina Beta 2, From the logs I see that IDE crash because of OpenJDK, Android Studio was working fine on Mac Os Catalina Beta 1, but started crashes on Beta 2, I downgraded back to Mac Os Mojave because it was impacting my production machine, I learn that never use Beta on Production machine. I advice you to downgrade your Mac Os to stable version. Or wait for intellij to update their apps to support Catalina.

You can go to /Applications folder and right click on Android Studio then select Show Package Contents , Goto to Contents/bin/studio.vmoptions and add at the end of the file :
-Dsun.font.layoutengine=icu
Restart the IDE.

Switching IDE java runtime to Oracle JDK 8 worked for me. To switch the IDE Java runtime:
Install "JB SDK Bintray Downloader" plugin (screenshot) in Android Studio
Follow the instructions under All platforms: switch between installed runtimes section to change the IDE java runtime - instructions
I've been using it for 2 hours now and no crash, no slow-ness, etc.

enter image description here
1) Update your Macbook OS to get latest in my case it was : 10.15.3

Related

Getting "There were deployment errors, Continue?" error in visual studio 2015 xamarin android emulator

I am very new in xamarin development. Recently I install xamarin with visual studio 2015 in windows 10. I have created a simple project in xamarin android. It build perfectly but when I try to run the project in emulator getting "There were deployment errors, continue?" popup message.
.
I have googled and do not get any proper solution. Please help me to solve the problem.
had the same problem on windows 64 bit
i'm using the latest android sdk build tools at this moment (v25.0.1)
just installed jdk 9 and a 32 bit version of jdk(version 7) due to this link
then changed the jdk path in tools>options>Xamarin>Android settings.
restart visual studio. clean and rebuild. that's it.
You may have wrongly selected "target Android version" to version your emulator is running on.
Make sure that these two are aligning.
VS -> (right click on project) -> properties - > Android Manifest (tab) -> Target Android version (drop down)
In my system, I'm using latest Android SDK build tools at this moment(v26.0.1) and Visual Studio 2017 Version 15.7.4.
In Regedit the Android SDK also same Visual Studio tools>options>Xamarin>Android settings. But the problem was same with me.
In my case, I changed the Package Name in Android Manifest then the problem has been solved.
I had this same problem, which I solved by editing the Android emulator on Android Device Manager giving it a processor of both 32 and 64 bits (x86_64).
After doing this, Android Device Manger downloaded and updated the Emulator configuration. After this I was able to run and debug my app with no problems on Android Emulator.
you should increase free space in drive C and empty temp folder

Version of Android studio for Mac OSX 10.7.5

I tried to install the latest version of Android studio on my OS x 10.7.5 but the AVD requires 10.8.5 or higher upto 10.9. It is not possible right now to update OSx, instead we decided to get a working version of android studio.
Which version of Android studio would work on Mac OSX 10.7.5?
There are three options from what I see here :
You install ubuntu (I recommend Linux Mint 17.2 "Rafaela" - Xfce RC (32-bit) as it's lighter on your CPU and RAM) and dual boot. You don't need to update your Mac OS 10.7.5, it will remain intact, but you will boot on linux to develop Android Apps.
There you can install the latest version of Android Studio with no hassle.
Go with the previous Android Development solution : Eclipse IDE Indigo or higher + ADT bundle plugin. Check to see what version of JDK worked on 10.7.5, install it, then install one of the versions of eclipse from Indigo to Mars and then install the above mentioned plugin.
You can try to download and run the first Android Develop Studio Beta that ever appeared on the website (0.8.0), I don't think they ever supported 10.7.5, but you can try.
My suggestion is to try to install linux (point 1) (maybe with the help of a friend), because it's important to have the latest SDK version and the latest updates.
+ It's easier to work with.

Visual Studio Android emulator won't open after updating VS

Recently updated VS to the newer version VS 2015 Community Edition from the pre release 2015 version.
Whenever I try to start the android emulator (tools>Visual Studio Emulator for Android) it throws an error instantly:
Could not load file or assembly 'Microsoft.Visual Studio.Telemetry, Version = 14.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a' or one of it's dependencies. The system cannot find the file specified.
I have tried to 'repair' visual studio and also the emulator itself in Programs and features.
Does anyone know how to fix this or is having the same issue?
This can happen if you don't have a version of the emulator that matches with a version of Visual Studio. Do you have RTM Visual Studio with an older version of the emulator? You can check by going to Add/Remove programs and verifying that:
Microsoft Visual Studio is version 14.0.23107.10 or greater
Microsoft Visual Studio Emulator for Android is version 1.0.50715.4 or greater
If not, you should uninstall the emulator and update it to the RTM version (the version number above or later).
I had the same problem with the latest version of Visual Studio Enterprise 2015 (Update 3).
It turned out that I had to remove an old version of the emulator and then install the new version.
Although the documentation tells that the Visual Studio Emulator for Android will be installed with the Visual Studio Setup, I could not find any entry in the setup for the Android Emulator and changing or repairing Visual Studio setup did not help.
Thanks to #John Kemnetz answer I found out that an old version of the Android emulator was installed. Maybe this prevented Visual Studio setup to install the right version?
I uninstalled the old Android emulator from Control Panel => Programs and Features.
Next I downloaded the new Android emulator from Visual Studio Emulator for Android and now it starts OK.

Cannot start new project with Android Studio

I just started using Linux Ubuntu, and downloaded and maybe set up Android Studio.
When I launch it, it does successfully, though it took hours to come here. But it gives me now :
Your Android SDK is missing, out of date, or is missing templates. Please ensure you are using SDK version 22 or later. You can configure your SDK via Configure | Project Defaults | Project Structure | SDKs
I tried to do so and at SDKs I added Android SDK. But when I clicked "ok", the prompt was dismissed but nothing happened, that is, not added.
I tried "Android SDK" two items below SDKs, because Android SDK was empty. But this time, Apply button and OK button doesn't respond. When I look at command line at the moment this error was being displayed.
[ 550663] ERROR - llij.ide.plugins.PluginManager - Android Studio (Preview) 0.4.6 Build #AI-133.1028713
[ 550663] ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_05
[ 550663] ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM
[ 550664] ERROR - llij.ide.plugins.PluginManager - Vendor: Oracle Corporation
[ 550670] ERROR - llij.ide.plugins.PluginManager - OS: Linux
It looks like there isn't relavant answer to this. All the questions tend to end with concluding "That's easy. Go Config, project default, project structure, and add Android SDK and Voila! You're good to go." Unfortunately no voila to me, so I here post this.
If anyone has an idea.
I have fix this ishue on Ubuntu 14.04, Android Studio 0.8 ::
sudo chmod 775 -R {your path}/android-studio/
In my case Studio were placed in /usr/local/android-studio ::
/usr/local/android-studio/android-studio/
I'm using Android Studio 5.7 and jdk 7 in Ubuntu 14.04 without problems.
I'm not expert but i thought you was using an old android studio version and a new jdk version.
I searched:
You are using android studio 0.4.6 based on IntelliJ 13.0
http://tools.android.com/recent/androidstudio050released
And IntelliJ adds support for JDK 8 in 13.1 version
http://blog.jetbrains.com/idea/2014/03/intellij-idea-13-1-released/
So try to upgrade Android Studio to 5.0 (based on 13.1) or better downgrade JDK version to 7 if you dont need it, perhaps not completely supported.
I was having a similar issue but on a clean install of Ubuntu 14.04, a fresh download of Android Studio 0.5.7, Oracle Java 8, Gradle 1.12 and the Android ADT Bundle 20140321. Every time I tried to bring up the Project Defaults to set the Android SDK location an exception appeared on the console with the same message you posted.
Before starting I set the various tool HOME environment variables to where those tools were installed, (which could be optional if you're installing all of these through the Ubuntu package manager..)
export GRADLE_HOME=/opt/DEV/gradle
export JAVA_HOME=/opt/DEV/jdk
export ANDROID_HOME=/opt/DEV/adt-bundle-linux-x86_64-20140321/sdk
export PATH=$PATH:$GRADLE_HOME/bin:$JAVA_HOME/bin:$ANDROID_HOME/tools
Then,
From the quick start dialog (presented when you first open Android Studio if you don't have a project already created) disable the Android Plugins found under Configure -> Plugins. Also disable any plugins Android Studio recommends when you disable the Android ones.
Restart Android Studio when prompted.
Add the Java JDK via Configure -> Project Defaults -> Project Structure -> Platform Settings: SDKs
Apply changes, head back into Configure -> Plugins and re-enable the Android Plugins.
Restart Android Studio when prompted.
Set the Android SDK Location and JDK Location under Configure -> Project Defaults -> Project Structure. When I did it, it was pre-filled so I just hit Apply.
Restart Android Studio
The SDK Manager is now a visible button under Configure and you can now create a new Android Project.
Upon creating a new Android Project, Android Studio then went off and download the various dependencies and Gradle 1.10. Annoying that it downloaded Gradle again, but at least Android Studio started to work after that.

Eclipse crashes on Android SDK and AVD Manager

I tried to install Android SDK plugin on my existing Eclipse Classic 3.6.0 (Helios). I managed to do everything else, but when I try to add components using Android SDK and AVD Manager in Eclipse, whole Eclipse just crashes.
Anyone have any idea what's going on?
Eclipse Crash Log on pastebin.com
NOTE: there is NO date shown on this page( Currently 2010 Nov )
This page states,
http://developer.android.com/sdk/requirements.html
System Requirements
Supported Development Environments
Eclipse IDE
Eclipse 3.4 (Ganymede) or 3.5 (Galileo)
Caution: There are known issues with the ADT plugin running with Eclipse 3.6. Please stay on 3.5 until further notice.
ALSO NOTE
looking at your pastebin.com post
you PATH variable is corrupt
As of Feb 2013, using Android Dev Tools (Android SDK and Eclipse), build v21.0.1 - the AVD Manager crashed repeatedly using JDK v7x. Using JDK v6x resolved the issue, able to setup virtual devices now.

Categories

Resources