DDMS has blank screen - android

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.

Related

Android studio - Typing text in the editor searches the editor

When I type something in the editor where code is typed, it goes to the search(ctrl+F) bar. When I click anywhere on the editor, instead of cursor appearing the entire text is selected or the line is selected if the line is empty.
It works if I restart it, but happens again. Please help. I don't want to spend most of my programming life restarting android studio.
Just give a chance may help you,
Try to make it default : reset Android Studio
On Windows:
Go to your User Folder - on Windows 7/8 this would be:
[SYSDRIVE]:\Users\[your username] (ex. C:\Users\Amit)
In this folder there should be a folder called .AndroidStudioBeta or .AndroidStudio
Delete this folder (take backup of folder).

Create a virtual device appear an error "The skin directory does not point to a valid skin"

My SDK tools to version 24.2
and SDK with Android 4.4W.2 (API 20).
I used Android Virtual Device (AVD) to simulate Android wear devices.
but appear error "The skin directory does not point to a valid skin"
I just had to close the dialog window and try creating the emulator again
Did you choose skin? Do like my captures, It works. Firstly, choose Android x86. Secondly, click ADVANCE SETTINGS to select CUSTOM SKIN DEFINITION.
I clicked on the ... button and chose my $ANDROID_SDK/skins (~/Library/Android/sdk/skins on my mac) directory, and then I was able to choose the appropriate skin.
I had this same error "The skin directory does not point to a valid skin." when creating an Android wear virtual device using AVD manager launched from Android Studio.
Solution for me was to pick the "Wear OS Round" skin option instead of the "Wear OS Round Chin" in previous screens.
The hardware file must be missing if you are getting this error. Make sure to add them by going to the previous page as shown in the attached image, click on New Hardware Profile, and click on Next.
Your problem should then be sorted.
In the case you create the device manually just by screen size, android studio might give you this error. Under advanced options you can explicitly select no skin to make the error go away.
None of the other answers helped me. I was UNable to find the correct directory because the Library is a hidden folder on Apple OS and for some reason Android Studio won't let me access hidden folders. So I had to link the hidden directory inside of a visible one:
Hidden folder: /Users/user_name/Library/Android/sdk/skins/pixel_2
I created a new UNhidden folder called: /Users/user_name/development/skin
The code I used to link it is:
ln -s /Users/timothy_brinkley/Library/Android/sdk/skins/pixel_2 skin
Screenshot of what the new shortcut looks like in the Finder
A bit of a face palm but in case it helps someone else.
I recently had this problem and it was because I didn't realize the skin I downloaded had two zip files inside of it for two different colored emulators. So, not only was I one level too high, Android Studio also didn't know what to do with those zip files.
Once I unzipped them and pointed to one, the error went away.

blank android studio "can't load settings from file workspace.xml"

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.

Android Studio - Android Device Monitor - Empty View

I am trying to use the Android Device Monitor within Android Studio, but somehow I managed to remove all views.
I have tried resetting the perspectives, Window->Show View->(Any View), and even re-installing Android Studio but nothing shows up.
Does anyone know how to reset the Device Monitor back to it's default views? (With the devices on the left, and the heap/threads/allocation views on the right.)
Thanks for your help!
I've experienced this same problem by using Window -> Reset Perspective. One should expect this to fix this issue, not break it. Go figure.
In any case, the DDMS workspace preferences are stored in %USERPROFILE%\.android\monitor-workspace (e.g. C:\Users\my_user\.android\monitor-workspace).
Just delete that folder and you're good to go.
Note that you'll need to enable 'show hidden files' in the finder if you are on a mac. Then, the workspace directory is in users/your_username/.android/monitor-workspace.
See http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/ for how to show hidden files.
On Windows:
Go to C:\users\my_user\.android\monitor-workspace)
Close android device monitor
Delete all files/folders inside of monitor-workspace folder
Run android device monitor again
Where "my_user" is your user folder.
That screenshot looks like you are running Windows. So, you could go to C:\Users\user3106174\ and delete the directory named .android (or something similar).

draw9patch does not open image files anymore

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.

Categories

Resources