Errors while starting Android Studio - android

I got these errors while starting android studio. Please can anybody provide me solution for this:
> java.lang.RuntimeException:
> com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal
> error initializing 'com.android.tools.idea.AndroidInitialConfigurator'

Just go to ~/users/[your_username]/ and delete .AndroidStudioXXX . then restart android studio and don't import settings from the previous version.

WINDOWS 10:
What helped me is I went Computer Properties => Advanced => System Variables and deleted everything that says Android...
There was AndroidSDK, AndroidAVD folder paths that are no longer existed in my system.

FIRST make sure you have installed same 32-bit or 64-bit of JDK and ANDROID STUDIO. then do following
Launch Studio
Configure -> Project Defaults -> Project Structure
Go to the SDK's section
Add a JDK
Add the Android SDK that is bundled in inside the Android Studio installation folder
Then go back to creating a new project.

Related

Unable to find bundled Java version, after update android studio

I have updated android studio, after that i am getting this error.
Unable to find bundled Java version.
unable to find bundle java version
for solving this error on mac just go to finder>Apllications>Android studio:
right click and click show package contents
open the folder of contents
create a new folder called jre
copy the contents of the jbr folder and paste them into jre folder
delete jbr folder
run flutter doctor your error is solved 😊
Try restarting the Studio, reinstall it or Invalidate Caches from File. I am sure one of it will work. The package could be missing in the update. If it doesn't work, open a issue at here
If Just kidding's answer does not work you can just reinstall Android Studio (don't forget to load the Flutter and Dart plugins) and it should be fine again.
My path to java was broken after updating AS to latest version (2020.3.1) and I had to fix it manually. Your issue seems related. Check your Android Studio -> Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle and see if gradle jdk path is set correctly (to your java installation on your mac).

Android Studio Fatal error initializing 'com.intellij.util.net.ssl.CertificateManager'

This problem occurred when I upgraded Android Studio 3.0 to 3.1: java.lang.RuntimeException: com.intellij.ide.plugins.PluginManager $ StartupAbortedException: Fatal error initializing 'com.intellij.util.net.ssl.CertificateManager'
What caused this, how to solve this problem yet
The details of the problem are below:
I fixed that by:
1) Downloading Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7
2) Unzip the files in Android Studio\jre\jre\lib\security
3) Run Android Studio :)
1.
Try to delete IDE system folder >
https://intellij-support.jetbrains.com/hc/articles/206544519
2.
Reinstall >
http://www.jetbrains.com/idea/download/index.html.
check if that helps
Solved this problem.
For me, all above methods are useless.
Then I guess maybe the plugin installed newly cause the error .
I empty the plugins at the directory of"C:\Users....AndroidStudio\config\plugins"
and it work normally.
Perhaps deleting last installed plugin would help. Path: C:\Users{username}}{AndroidStudio Version}\config\plugins\ .
In my case - could get launch after deleting Hoi4.jar , avaliables.xml, availables_etag.
(https://issuetracker.google.com/u/1/issues/112016425)
As the exception occurred by uninstalling any plugin from plugin manager, that means you have just uninstalled any plugin. But in such case, plugin not fully uninstalled from android studio config.
So you need to delete that folder.
First goto task manager of the system, end task android studio if not ended.
Then goto installation folder USER/.AndroidStudioX.X/config/plugins, Now check that any folder regarding your uninstalled plugin. Delete that folder. Now start the android studio.
Works in my case.
Update the IDE tools. It worked for me.
The Android SDK Manager helps you download the tools. To open the SDK Manager from Android Studio, click Tools > Android > SDK Manager or click SDK Manager in the toolbar.
Here is the link for reference

Gradle error: Write access is allowed from event dispatch thread only in Android Studio

After updating Android Studio to version 2.2 (on Windows 10) and somehow next morning I received such error when gradle built on any project:
Write access is allowed from event dispatch thread only
Despite that gradlew -build command worked and completed successfully.
I tried typical Android dev's of WTF repairing set: clean build, invalidate caches, removing build folders, removing .gradle folder, tried different gradle settings, even reinstalling Android Studio and nothing helped.
I've created this question only to share my experience with community, because I wasted two hours on it.
So the problem was concluded in that Android Studio conflicted with my installed JDK version, so it was resolved when I checked JDK location (File → Project Structure → SDK Location), ticked 'Use embedded JDK' checkbox and set JDK location to 'path to Android Studio'\Android Studio\jre
Problem was occurred when android studio conflict with installed jdk
version, Go to the (File -> Project Structure -> SDK Location), check
'Use embedded JDK' checkbox and set jdk location to 'path to android
studio'\Android Studio\jre :) Simple
that didn't work for me, i ran a 'gradle clean build' command, i figured out that there's a conflict in a line in the gradle, deleted it and sync project (as in this pic)
My issue was that I had removed the SDK I was using while clearing up hard drive space.
To fix this, first check what SDKs you have installed, or install one in Tools > SDK Manager.
You can then change the compileSdkVersion and targetSdkVersion in app build.gradle to your installed sdk version.
Otherwise you can just reinstall what ever sdk you were using.
In Android Studio 3.2.1 go to File -> Project Structure -> SDK Location and check in the check box "Use embedded JDK (recommended)".

Cant start a new project in Android Studio, nothing happens

I am new to Ubuntu and Android, and I tried to install Android Studio and succeeded in that matter, but when I click Start a new project nothing happens. I tried reinstalling, but it didnt help. Any ideas?
EDIT:
i managed to create project manually using terminal, but in android studio I still cant create project nor edit existing project (some IDE error is thrown)
You should be more specific (screenshot or quotes of error), so try this:
In Android Studio, go to Configure -> Project Defaults -> Project
Structure -> Platform Settings (SDK) choose the Android SDK, set the
build target and click on apply.
After successfull installation of Android studio,sdk and jdk i was not able to open new project in Android in Android Studio on windows 7. This got resolved by doing the below settings,
Configure -> Project Defaults -> Project Structure -> Platform Settings (SDK) choose the Android SDK >click Apply and Ok.
You are good to go. Please note that you need jdk 1.7 to work with Android studio.

can not create new Android project using Android Studio

I am trying to create Android project using Android studio.
I have installed the latest Android studio and update it using the help-check for updates.
Then I tried to create my first Android project, however after the studio download the gradle, it throw a error:
Gradle: A problem occurred configuring project ':FirstAndroid'.
> Failed to notify project evaluation listener.
> Could not resolve all dependencies for configuration ':FirstAndroid:_DebugCompile'.
> Could not find any version that matches com.android.support:appcompat-v7:+.
Required by:
FirstAndroidProject:FirstAndroid:unspecified
I am not sure what's the problem.
Anyone can do me a favor?
I am sorry , I think I made a mistake before I ask this questions.
Before using Android studio , I have used eclipse and Idea together with a standalone Android sdk while this sdk cover almost all the required components.
However when I install Android studio, it use its internal sdk which do not include the components like com.android.support:appcompat-v7, after update the sdk through the Android studio, the problem is solved.
It says com.android.support:appcompat-v7 -- maybe, you need to install v7 support?
I have to note that the last time I needed to create a new project, I found the tools in a poor state: to create a project that could compile from both Eclipse and command line I had to create two new projects and manually copy files from one to another (otherwise I was getting a crazy error about null returning 1).
I was getting the same message. (Working on Mac, Android Studio 0.4.5)
Simply updating the SDK through the SDK Manager did correct the issue for me.
To correct the issue I opened the SDK manager (tools -> Android -> SDK Manager). Scrolled down to the bottom and found the Extras folder.
Downloading and installing the components in the Extras folder corrected the issue.

Categories

Resources