I have Error on create Project in Android Studio
Error:Execution failed for task ':app:prepareComAndroidSupportAnimatedVectorDrawable2320Library'.
Could not expand ZIP 'D:\program\android_sdk\extras\android\m2repository\com\android\support\animated-vector-drawable\23.2.0\animated-vector-drawable-23.2.0.aar'.
How to fix it? Thanks
Try ,
Check whether you have write access on both the android sdk and
Android Studio directories.
if you are on Windows OS, also try to run Android Studio as
Administrator by right clicking on the Studio's icon.
run Android Studio as Administrator and check if your project setting is properly set ~~this error occurred for me, it was because i directed to wrong sdk folder
Related
I keep getting the error in installing android studio regarding sdk files.
I even tried to run it as administrator again but it could not be resolved
1st Solution
Download java jdk
JAVA JDK:- https://www.oracle.com/in/java/technologies/downloads/
2nd Solution:- open android studio and click on 3 dot in top side and click SDK Manager and Download all the files. :)
I develop one application into Android Studio and when close and open Android Studio.
When open android studio I see red lines with of android studio and not found SDK and I can't write any code!
My Android studio error image :
How can I fix it? please help me
Delete this all four folder's and rebuild againand also check your local.properties file "sdk.dir=/Users/macbookpro/Library/Android/sdk"
Try to clean your project:
Tab Build -> Clean Project
After updating to Android Studio 3.2 Beta 1, I started getting the following error for two different projects:
Gradle sync failed: Already disposed!
There is no error with Android Studio 3.1.3, and there was no error with various canary versions of Android Studio 3.2 before updating to beta 1.
I already tried everything I can think of (e.g. complete cleaning of project, including all generated .gradle/.iml/.idea files/folders, as well as a complete invalidate cache and restart of Android Studio) without success. The build works as expected from command line using Gradle.
This is not a duplicate of Android Studio Gradle Already disposed Module
EDIT
The event log is showing
Unable to save plugin settings: The plugin org.jetbrains.android failed to save settings and has been disabled. Please restart Android Studio
In the "IDE Fatal Errors" window, I am seeing the following exception:
'Gradle: backport-util-concurrent:backport-util-concurrent:3.1#jar' already disposed: --------------Creation trace:
java.lang.Throwable
at com.intellij.openapi.util.TraceableDisposable.<init>(TraceableDisposable.java:45)
at com.intellij.openapi.roots.impl.libraries.LibraryImpl.<init>(LibraryImpl.java:103)
at com.intellij.openapi.roots.impl.libraries.LibraryImpl.<init>(LibraryImpl.java:69)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase$LibraryModel.readExternal(LibraryTableBase.java:327)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase.loadState(LibraryTableBase.java:64)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase.loadState(LibraryTableBase.java:30)
at com.intellij.configurationStore.ComponentStoreImpl.doInitComponent(ComponentStoreImpl.kt:375)
at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:331)
at com.intellij.configurationStore.ComponentStoreImpl.initPersistenceStateComponent(ComponentStoreImpl.kt:121)
at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:96)
at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.initializeComponent(PlatformComponentManagerImpl.java:54)
EDIT2:
More recent version of Android Studio 3.2 are having the same issue.
As it turned out, the problem was that I was trying to open a project directory that was a symlink to the actual location (on the same partition). Gradle (on command line) had no issues building the project from the symlinked location, however, opening it in Android Studio resulted in the obscure and non helpful error described above.
Simple solution
1.Delete module folder and modules.xml file under .idea folder.
2.Close Android Studio
3.Reopen and sync
Possible duplicate problem:
Android Studio 3.0 - Unable to save settings: Failed to save settings. Please restart Android Studio Android Studio 3.0 - Unable to save settings: Failed to save settings. Please restart Android Studio
This worked for me: Delete the .idea folder.
1) Go to File--> Settings -->Plugins Disable any plugins not loaded (i.e. red in color) #friederbluemle This may not apply to you.
2) Enable the one plugin, Android Support
3) Right-click on your 'app' directory (contains your module gradle.build file) in Android Studio and select 'Show in Explorer' --- this opens that directory.
4) Quit Android Studio. Get out of any and all instances of Android Studio to allow you to then delete the fold, .idea, in that directory.
5) Restart AS, you'll notice the project will not come up -- you'll have to pick in the dialog window that appears. That's ok. Pick it, and it will 'rebuild' the folder, .idea.
6) Go to File--> Settings -->Plugins Enable any and all plugins if any.
What worked for me was going to Android Studio File and Invalidate/Restart options.
What worked for me is as follows
Delete the .idea folder
Close Android Studio
Reopen Android Studio and allow it sync your project all over.
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
I'm very new to android and I just recently cloned an Android project.
When Android Studios performs the indexing once opening the project, i get this error all the time.
this is the error I get from Android Studio.
Error:(89, 0) Failed to delete original file 'C:\Users\myname\AppData\Local\Temp\gradle_download8065263342645015068bin'
after copy to 'C:\Users\myname\.gradle\caches\modules-2\files-2.1\com.android.tools.build\gradle\1.5.0\1c3d2b23212349ffbe6479fcb04732c5cddaf98b\gradle-1.5.0.pom'
Open File
Try the next step to "Refresh" your IDE (android studio)
Choose File | Invalidate Caches/Restart.
Another possible cause is the Anti-virus. It may block Gradle or Java
There can be multiple reasons for this error but are usually linked to Rights. I solved this by following these 2 different steps at different times.
Run Android Studio as Administrator
Check if the your project folder is read-only ? If yes, remove the read-only attribute from Folder Properties.
If Invalidate Caches/Restart doesn't work, change your GRADLE BUILD TOOL to any lower Version, or different Version untill it works
For me I got the error for Gragle 2.2.3, but fixed when I changed to 2.1.3, you can try with different newer versions from here Gradle Build Tools
I was able to solve my issue by disabling the Instant Run feature of android studio.