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
Related
Whenever I attempt to run a project in Android Studio, I get the message below:
Unable to find toolchain: /Users/christiantisby/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt
I'm not understanding what needs to be downloaded/added. I have attempted to delete Android Studio and download it again, but I'm getting the same error. Please help.
Update your gradle version and sync project.
In my case I updated it to com.android.tools.build:gradle:3.2.1 and worked fine for me.
Go to the SDK Manager in Android Studio
After that delete NDK & LLDB
If this didn't help you then try Martin Zeitler answer.
Go to the SDK Manager in Android Studio and then download the NDK & LLDB (debugger); This would install it at /Users/christiantisby/Library/Android/sdk/ndk-bundle.
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.
After downloading Android Studio and opening an existing project, when I went to edit configuration (after trying to run an existing project) but when I attempted to configure it as an Android Application, I did not find the android application option, which when I compared to my other computer, is required to run the program.
Furthermore, I am missing the Android SDK Manager, both in the IDE and on the startup screen. I don't have SDKs installed on this computer, and I think they are needed to run my project, so I kind of want the SDK Manager.
I have also re-installed Android Studio 8 times, including several older versions. I also installed the packages, which do come with SDK tools, and I made sure everything was selected on installation.
In my case it helps: just File -> invalidate caches/Restart
hope it also can be usefull to someone ;-)
check the sdk manager present in the location "C:\Users\"user-name"\AppData\Local\Android\sdk"
launch the SDK manager install the package that you needed
paste the link
"C:\Users\"user-name"\AppData\Local\Android\sdk"
[Android Studio>configure>Settings>Android SDK ]
Maybe try deleting everything of Android Studio and then installing the latest version. It might be because of the leftovers of the previous versions that caused this problem to occur. The best way is to try restoring your PC to the time you hadn't have Android Studio.
Click on File -> Sync Project with Gradle Files
I've just updated to the newest version of Android Studio, and started a fresh, empty project. After finishing the wizard, I opened the main Activity.java file, and there was a message that said:
Gradle project sync failed. Basic functionality will not work properly
I found that I should try the button Sync Project with Gradle Files. This produces another error:
Failed to refresh Gradle project. Could not find any version that matches com.android.support:appcompat-v7:+
Please install the Android Support Repository from the Android SDK Manager
I tried to open the Android SDK manager and got another error:
Please specify Android SDK
So I went into my Project Structure, which has two sections, 'app' and 'Android SDK'. Android SDK points correctly to the Android SDK directory, and app is blank.
What should I do?
I tried downloading the latest SDK bundle and pointing to that in the Project Structure instead, but that hasn't fixed the problem.
I had a similar problem. After updateing to AS 0.4.2 from 0.3.7 I received the error: "Gradle Project sync failed. Basic functionality will not work properly..."
What I did was to delete the content of .gradle folder and modify the gradle-wrapper.properties file:
distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-all.zip
Now it works, I don't know if it's the solution for you, but be sure to backup files before deleting them :)
i know this answer may have been posted before but next time you get such an error after updating sdk,click on file->Invalidate caches/restart. This solution works perfectly for me.
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.