Related
This is the first time I've encountered this issue with Studio 4.0. Project and app-level files not able to open, below some other file which not able to open:
Android Studio 4.0 - .csv file Not open, displays nothing.
- .java file not open.
- .kt file not open.
Has anyone else seen this behavior before? And solutions? Advice would be appreciated.
I have used this plugin for CSV file read https://plugins.jetbrains.com/plugin/10037-csv-plugin without this plugin Studio working fine.
Go to the folder:
C:\Users\<username>\AndroidStudio4.0\config\plugins
On Linux:
~/.AndroidStudio4.0/config/plugins/
…and delete the csv plugin folder.
This will solve all of the problems. For any other issue, just go to the File menu and sync the project with gradle files.
I had the same issue on MacOS with AndroidStudio2021.1,then I deleted the following folder:
~/Library/Application Support/Google/AndroidStudio2021.1/plugins/CSV
But still not working for me, then I deleted whole folder of AndroidStudio2021.1 directory path is:
~/Library/Application Support/Google/AndroidStudio2021.1
or You can only delete folder of plugin, It might be work also.
~/Library/Application Support/Google/AndroidStudio2021.1/plugins
For people using Ubuntu 20.04 and having Android Studio 4.1 installed manually (no snap), you'll find the folder under ~/.local/share/Google/AndroidStudio4.1
I had the same problem on MacOS with Android Studio 4.1. I deleted the following folder and it works now:
~/Library/Application Support/Google/AndroidStudio4.1/plugins/CSV
I also faced the similar issue, I have used one CSV file into my Android Studio project and downloaded the CSV plugin after that while building gradle it was showing Lint Infrastructure Error.
Then, I have uninstalled the CSV plugin then everything is fine. (Hope this answer would be helpful to the guys who are facing similar type of error)
I recently downloaded a new version of Android Studio, but after installation of the program, it asked options like to create new projects or others as I click on the project structure where I had to locate the path of the SDK. After locating its path correctly, it just froze. Nothing happens when I click the create a new project option. Instead of this, I clicked open the current project option. Android Studio opened, but without the SDK settings. When I go to the SDK manager to locate the path of SDK, that SDK manager option is not loading. It keeps on loading and shows nothing.
This problem is only related to the new version, not with the Android Studio 1.5. What should I do to solve this problem?
i hope this command help you!!
For linux
open Terminal
Follow this commmand
cd /media/ubuntu/DATA/android-studio/bin
./studio.sh
For Windows
Follow this commmand
cd /media/ubuntu/DATA/android-studio/bin
./studio.sh
I am trying to import an Android code. While doing this it gave me an error about SDK path and once I pressed ok to solve that issue it didn't open the project. Can anybody help me with this issue?
Before you Open/Import your project, configure your SDK and JDK locations on the Android Studio, and then try to Import/Open your project.
Anybody knows how to get around this issue while launching Android Studio?
I saw a Google ticket here, but it was not useful: https://code.google.com/p/android/issues/detail?id=164202
Internal error. Please report to https://code.google.com/p/android/issues
java.lang.AssertionError: Unexpected node Pythonid; nodes=[org.jetbrains.plugins.terminal, org.jetbrains.plugins.javaFX, org.jetbrains.plugins.gradle, org.jetbrains.plugins.github, org.jetbrains.java.decompiler, org.jetbrains.idea.maven, org.jetbrains.android, org.intellij.intelliLang, org.intellij.groovy, org.editorconfig.editorconfigjetbrains, hg4idea, com.millennialmedia.intellibot, com.jivesoftware.robot.intellij.plugin, com.intellij.ui-designer-new, com.intellij.tasks, com.intellij.properties, com.intellij.modules.xml, com.intellij.modules.xdebugger, com.intellij.modules.vcs, com.intellij.modules.python, com.intellij.modules.platform, com.intellij.modules.lang, com.intellij.modules.json, com.intellij.modules.java, com.intellij.modules.androidstudio, com.intellij.modules.all, com.intellij.java-i18n, com.intellij.copyright, com.intellij, com.google.gct.testing, com.google.gct.login, com.google.gct, amailp.intellij.robot, TestNG-J, Subversion, JUnit, Git4Idea, Coverage, CVS]
at com.intellij.util.graph.GraphGenerator.buildOuts(GraphGenerator.java:55)
at com.intellij.util.graph.GraphGenerator.<init>(GraphGenerator.java:36)
at com.intellij.util.graph.GraphGenerator.create(GraphGenerator.java:40)
at com.intellij.ide.plugins.PluginManagerCore.createPluginIdGraph(PluginManagerCore.java:543)
at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.java:1126)
at com.intellij.ide.plugins.PluginManagerCore.initPlugins(PluginManagerCore.java:1256)
at com.intellij.openapi.application.impl.ApplicationImpl.loadApplicationComponents(ApplicationImpl.java:348)
at com.intellij.openapi.application.impl.ApplicationImpl.<init>(ApplicationImpl.java:215)
at com.intellij.openapi.application.ex.ApplicationManagerEx.createApplication(ApplicationManagerEx.java:45)
at com.intellij.idea.IdeaApplication.<init>(IdeaApplication.java:112)
at com.intellij.idea.MainImpl$1$1.run(MainImpl.java:47)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:706)
at java.awt.EventQueue$3.run(EventQueue.java:704)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
It looks like you have a corrupted installation file - completely uninstall Android Studio and download it again from the website.
Install the newly downloaded version of Android Studio on your system - the one you had previously downloaded is likely corrupt.
Here are the instructions to uninstall Android Studio completely. Note that some files may be located in a different location depending on where you chose to install and the versions you've been using so if something is not in its normal place, please let me know.
Please follow all of the steps below in order.
Run the uninstaller
The first step is to run the uninstaller. Open Control Panel by accessing it from the menu when you right-click the Start Button (This applies for Windows 8 systems). Then, under Programs, select Uninstall a Program. After that, click on Android Studio and press Uninstall. If you have multiple versions, uninstall them as well.
After you have uninstalled Android Studio, it is recommended that you restart before proceeding with the steps below.
Remove the Android Studio files
To delete any remains of Android Studio setting files, in Windows Explorer (The file browser in Windows), type this as the File Path:
C:\Users[YOUR WINDOWS USERNAME]
Replacing [YOUR WINDOWS USERNAME] with the username of your account on Windows. If you don't know your username, navigate to C:\Users and it will list all users on the system.
Here, delete .android, .AndroidStudio and any versions of this directory with versions on the end, .gradle and .m2.
Then, go to
C:\Users\Harry[YOUR WINDOWS USERNAME]\Roaming
and delete the JetBrains directory.
Finally, go to
C:\Program Files
and delete the Android directory.
Remove the SDK
To delete any remains of the SDK, in Windows Explorer, type this in as the File Path:
C:\Users[YOUR WINDOWS USERNAME]\AppData\Local
Here, delete the Android directory.
(Optional) Delete all previous projects
If you want to delete any of your previous projects, the directory where your projects are found is the AndroidStudioProjects directory. It is located in your root user file, C:\Users[YOUR WINDOWS USERNAME].
Hopefully this will now have deleted the Android Studio files and you can now try reinstalling the tools.
If you have any problems doing so, give me a shout :)
1st step please disconnect your internet connection and restart the studio.
If it is not working??? Do the following steps.
Open the folder bin under the directory where you installed your Android Studio.
Find the file idea.properties and open it with Notepad++/UltraEdit/other_edit_tools.
Add disable.android.first.run=true as the final line and save the file.
Restart Android Studio.
Remove lib folder .local/share/Google/AndroidStudio4.1/marketplace
or execute command
rm -rf ~/.local/share/Google/AndroidStudio4.1/marketplace/lib
To recover from this state, you need to remove the "python" folder that you find here:
~./AndroidStudio1.2/config/plugins
(Found at https://code.google.com/p/android/issues/detail?id=164202, worked for me)
I have this problem in android studio in linux OS after install a plugin,i resolved this issue with deleted.AndroidStudio3.2 folder from Home Directory and other way you can go to this directory and delete the plugin that caused it .
Directory : /home/your system's name/.AndroidStudio3.2/config/plugins .
and for windows OS you must go to this Directory :
C:\Users\your system's name.AndroidStudioPreview3.2\config\plugins
Note : this directory is hidden and you must visible befor use it .
I did faced this issue too, where it says to do this in my windows 10:
please report to https://code.google.com/p/android/issues in a windows error message.
It happened when i added some plugins in Android studio in Windows.
It persisted in my machine until i opened my Android Studio as an administrator and then uninstalled the most recent Plugins from File > Settings > Plugins > Installed Plugins.
What went wrong may be I added many plugins and applied all of them at once. May be i should have added one plugin at a time. Like install a plugin > apply that plugin and restart my Android Studio IDE in order to see it's effects.
MacOS
My issue was with a plugin. I tried all sorts of ways of deleting Android folders using terminal. Nothing was working for me until I searched all instances of AndroidStudio in Finder and deleted each of them. After reinstalling everything worked great!
I solved it by removing an incompatile plugin located here: ~\AppData\Roaming\Google\AndroidStudio4.1\plugins.
I deleted the folder "marketplace"
Open the folder bin under the directory where you installed your Android Studio.
Find the file idea.properties and open it with Notepad++/UltraEdit/other_edit_tools.
Add disable.android.first.run=true as the final line and save the file.
Restart Android Studio.
It information helped for me
<<~ ~ ~ Quick Solution for Windows 10, Hope it will help ~ ~ ~>>
Download the latest Android Studio from the official website
Uninstall the existing Android Studio from your computer. NB: Remove Settings Preferences too while uninstalling.
Restart your computer
Install the newly downloaded Android Studio
Delete the old directories which will show when run the Android Studio the first time after installation of the new Android Studio.
NB: Do not remove your SDK files after uninstalling the Android Studio, if you want to save your time in installing the Android Studio.
I have solved this problem, depending on the system you use delete the following files:
Linux:
~/.local/share/Google/AndroidStudioPreview4.1
Windows:
C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudioPreview4.1
MacOS:
~/Library/Application Support/Google/AndroidStudioPreview4.1
Thanks #Jonilson Coelho dos Anjos
For Ubuntu users
go to home
press ctrl+h to show hidden folder .local
now go to .local folder
you will find share folder, go inside share folder
find Google folder and delete it
Open Android Studio
Enjoy !!
delete paid plugin in android studio plugin folder (C:\Users\your_computer_name\AppData\Roaming\Google\AndroidStudio4.1\plugins) and will work correctly. it works for me.
paid plugin should have to activate otherwise it will conflict.
1) Go to
'C:\Users\your-user-name\AppData\Roaming\Google\'
2) Delete folder
'AndroidStudio4.1'
3) Then restart Android studio.
I hope this works for you.
I came with a new solution. Instead of uninstalling Android Studio and removing all related folders and losing your programming state on Android studio, and beside all these wasting your time, you should try this solution first which worked for me:
In my case the problem was the Windows. As it has crashed recently, I figured out the problem could be it, so I decided to restore the windows to the most recent point before Android Studio crashed. But the system restore tool didn't allow me to restore my system at all, and it said I should repair missing or corrupted system files first.
I first used Microsoft System File Checker tool thread to fix the case, and guess what? after restarting the windows 10, all problems gone. No need for uninstalling the Android Studio or removing any plugins or even restoring the windows to an stable state.
Hope this work for you too.
error Android studio
Hi everyone, I have this problem recently and I found the solution by deleting plugins which was corrupted in:
~AppData\Roaming\Google\AndroidStudio2021.1\plugins
-EmmyLua
-Luanalysis
My solution is:
Delete folder C:\Users\[user]\AppData\Roaming\Google\AndroidStudio
Delete folder C:\Users\[user]\AppData\Local\Google\AndroidStudio
Run AndroidStudio.
Note:
Android Studio will be opened like fresh install.
100 % solved
1st go to
C:\Users\your-user-name\AppData\Roaming\Google\
2nd Delete folder
List item
'AndroidStudio4.1'
'AndroidStudio4.1-backup'
DELETE ALL ALL ANDROID STDIO VERSION AND BACKUP RELATED FOLDER
3rd Start again android studio
I had this problem for a while and was able to solve it myself.
If in opening your project in Android Studio and something similar to this error message pops up:
Cannot load settings from file (C:\Users\User\AndroidStudioProjects\ProjectName\.idea\workspace.xml): Error on line 1: Content is not allowed in prolog. Please correct the file content.
It probably means your project workspace settings file is corrupted by whatever reason and Android Studio could not read it. Mine is probably because of BSOD, because Windows.
To solve the error, just delete the workspace.xml as specified in the error message. It is ok to delete it since you probably already lost all your custom workspace settings when the file got corrupted and you will never be able to save new workspace settings unless you fix the corrupted file. After deleting it, the next time you open your project in Android Studio, it will try to look for the workspace file, and if it can't find it, it will just create a new valid one.
I hope this helps! :)
Step 1 :Exit Android Studio.
Step 2 :Delete workspace.xml file found in the \ProjectName\.idea\ directory.
Step 3 :Run Android Studio again.
On a Mac, I found File > Invalidate Caches/Restart did the trick.
on a windows 8.1, I found File > Invalidate Caches/Restart did the trick
I have encountered similar problem many times, and there just one thing that can be done to solve this.
Just delete idea folder.
I would like to suggest restart Android studio File > invalidate caches and restart... > invalidate caches and restart option before deleting workspace.xml
if restarting android studio fail to solve your problem, kindly run check disk from disk properties because I notice that this error is raise due to file indexing / file system error or sometime permission denied by OS.
Just Delete idea folder ..
Thank you.
in Terminal navigate to your project directory, and run these
rm -rf .idea
rm *.iml
then go into your app directory and do that same thing as above.
Finally, "File" -> "New" -> "Import", this should solve the corruption.
Just delete .idea folder from project directory an re run android studio.
it worked for me.
I am using Android Studio 4.0 I solved this by:
Deleting .idea folder in the Project
Restart Android Studio
Done :)
I have encountered similar problem many times, and there just one thing that can be done to solve this.
step 1 : delete the .xml files containing error, or cut and paste to some backup folder if you want to inspect that file later on. However, it's unlikely that you'd find anything.
step 2 : try to open android studio after having deleted those files, it must be running perfect. if it doesn't and still contains errors try 'invalidate catches and restart' option in file menu.
I just deleted the workspace.xml after closing the studio and started again.
It works fine.
Since for me didn't worked to delete the file i just override the actual workspace.xml with the one i had on backup directory of my project. Now it works.
Had Today the same Problem, but i found a "workspace.xml" with something like "jpt_tmp" at his end, in the same directory. After swaping the "tmp" once with the original, i got everything back to work.
I tried many options but finally for windows 10, File > Invalidate Caches/Restart worked for me.
I guess the problems depends on each situation. I was using Flutter in Android Studio and suddenly one day this problem occurred.
Just delete the project_name.iml in Flutter project and project_name_android.iml in android module.
For android projects simply delete .iml file in the project.
After deleting restart Android Studio and follow the steps as in this video. It was of great help.
Sorry for delay response, I also came across this scenario, so tried to resolve it using many way available on internet which include
invalidate cache and restart
restart android studio
deleting *.iml file
restart system
The only solution worked for me is, I export my project into zip format and then I open it from there. The project open and build successfully without any problem.
I hope this will help for you.
In my case it was iml file which was corrupted, so i deleted it, restarted android studio,
pasted the same file as it was before, restarted android studio and everything was working fine.
A gradle sync did the trick for me.
Just press the button from the toolbar named "sync project with gradle files". The icon is an elephant with a little blue arrow.
If it still does not work, try deleting the .idea folder first, before syncing the gradle files again.