When i open android studio it shows me blank screen like i don't have any projects with a yellow message at the top corner that says "can't load setting from file workspace.xml..."
After i tried to delete the workspace.xml file as suggested here and open android studio again the message didn't appear but it was still without any projects. Yesterday everything worked fine and i can still see my project data on the windows explorer. Can someone please tell me how to fix this issue.
go to your user folder
[SYSDRIVE]:\Users[your username] (ex. C:\Users\aman)
In this folder there should be a folder called .AndroidStudioBeta or .AndroidStudio (notice the period at the start - so on some OSes it would be hidden).
Delete this folder (or better yet, move it to a backup location - so you can return it if something goes wrong).
this will solve your problem.
Related
I'm modifying the Firefox Android App. I'm trying to change the search suggestions feature from Google to another search engine. To do this I have to change 2 files
The first file I change is:
fenix/app/build/intermediates/merged_assets/debug/out/search/list.json
The second file that I add is:
app/build/intermediates/merged_assets/debug/out/searchplugins/test.xml
After I make these changes and run the app in the emulator to test it out, the changes that I make are reversed/undone/overwritten, and the notice pops up saying "Files under the "build" folder are generated and should not be edited".
What should I do to make my changes save here? Why are the files being reverted back to before I changed them?
Thanks for your help
I want to add a new vector asset. I am trying to add a clipArt but it only shows in the dialog box "Nothing to show". No icon is showing and I want to add an icon. I don't know to fix this. Please help. I am still trying to learn android studio and I am practicing on how to use it.
For myself, my asset dialog only shows some of these icons. And here is my solution.
Go to
[SdkPath]/icons/material
There should be a file called icons_metadata.txt, and folders
materialicons
materialiconsoutlined
materialiconsround
materialiconssharp
materialiconstwotone
For each icon, there will be one folder in the folders above. For example, we have materialicons/share, materialiconsoutlined/share and so on.
These icon folders are not complete, only icons starting with digits exist. Since the folder only updated when "Select Icon" dialog is opening, I opened "Select Icon" dialog again, waiting for all icons are downloaded, and then reopen the dialog.
Then my problem is solved.
This a new problem introduced in the latest version of Android Studio 4.1.
This happens when your windows user name folder contains a space. Rename your user name’s folder removing the space and it will work again.
For some reason the space make the folder where the icons are located not visible to Android Studio.
If there are already this folders and still nothing in dialog try deleting <sdk>/icons/material/icons_metadata.txt
Credit to
#MainActivity
Those clip arts are located in "icons" folder inside your sdk folder on your hard drive and the sdk folder is generally this:
C:\Users\ --username-- \AppData\Local\Android\Sdk
I guess android studio cannot access the right sdk location so make sure the sdk location in your "File/Project Structure/SDK Location" matches the actual sdk location on your hard drive.
Alternatively, you can download the clip art you need from this link: Android Material and import them by choosing Local file in your Asset Studio.
In Android Studio 4.1.1 this issue is resolved. Update if possible.
It's working
Your SDK folder name must be spaced less, ex- (UTTAM, UttamSdk, Uttam_sdk)
HAPPY CODING :)
Same thing happened with me, also i was not able to change my user name because of Win 10 Single Lang. so i just moved my SDK folder to another path but there was not space between the path like from >> C:\Users\User Name\AppData\Local\Android\Sdk to >> C:\Users\Sdk.
when I last used the DDMS from Android Studio I tried open *.hprof file, but the whole screen changed to blank.
Now the screen is always blank. I reinstall Android Studio, Eclipse and of course SDK, but with no effect.
Can you someone tell me how to reapir it?
Thank you
I had this problem too, and I arrived at it the same way (trying to open a heap dump *.hprof file). Resetting the perspective does not work.
How I fixed it:
go into .android folder in your home directory
there should be a monitor-workspace folder; move it to a backup directory (or delete it)
restart DDMS
You should be able to reset the perspective with a right-click on the DDMS button.
I have just made an application that uses a SQLite database, and I finally managed to export the database file onto the computer without having to root the Android device. The method I am using is mostly from code I found on various Stack Overflow question/answers. I am basically saving the database file to the public Download folder.
When I look on the Android device using a file explorer, I can see the correct SQLite file in the correct folder (Download folder). However, when I open up the same folder in Windows Explorer from my PC, I can not see the file in the exact same folder.
Now here is the strangest part: When I copy or move the file (using the Android device), even if I am copying and/or moving the file TO THE EXACT SAME SPOT, as soon as I have finished doing this the file instantly becomes visible in Windows Explorer.
I do not want the user to have to do this manually every time, so does anyone know of any way to make sure that the file will be visible right away? Thank you in advance!
Things I have tried so far:
Show hidden files and folders in Windows Explorer
Programmatically moving the file to a new folder within the application itself (the move to the new folder works, but the file still remains invisible in Windows Explorer until manually moving/copying the file again)
Searched StackOverflow for similar issues and have been unsuccessful.
And if anyone wants to see some of my code, let me know and I will post it, but I am thinking that this is less to do with my code and more to do with Android/Windows interaction. And this is where I got my move folder function from: stackoverflow.com/questions/4178168/how-to-programmatically-move-copy-and-delete-files-and-directories-on-sd
Thank you!
I had a similar issue and it was not visible in Windows because I hadn't given it a file extension.
Give it a file extension if you haven't already.
I can not open any PNG files anymore with draw9patch. When i use the menu (File - Open 9-patch), just nothing happens. No file browser opens. When i drag a PNG into the app UI, it freezes right away and i have to kill the process. I'm using the Android SDK Tools 22.0.5, which is the latest version, on a Mac.
I've tried it with android-sdk/tools/draw9patch and java -jar android-sdk/tools/lib/draw9patch.jar. Both with the same result and no log output or anything.
Any ideas what's going wrong here?
Edit:
Just downloaded the whole ADT bundle again. Still no change.
Of course, one more time: just after i ask on SO, i figure it out.
I tried to open draw9patch directly. Seems it does not like that. When i open it from within eclipse (right click on the PNG - open with - other - internal editors - Android 9-patch editor), then it works just fine.