Monday 23 April 2012

VirtualBox - error after moving VDI file - Failed to open the hard disk

I was running out of disk space, so I needed to move virtual disk drive (VDI file) to another partition. As normally (read: in other virtualization tools) I removed/detached VDI file from virtual machine, moved it to new partition and added to existing virtual machine in this step error occurred:

"Failed to open the hard disk filepath.vdi
Cannot register the hard disk filepath guid because a hard disk different filepath.vdi with UUID guid already exists.guid "

Solution:
Run following command "vboxmanage internalcommands sethduuid filepath.vdi"

PS vboxmanage.exe is normally located in "C:\Program Files\Oracle\VirtualBox"

Thursday 5 April 2012

ADT17 bug: "java.lang.NoClassDefFoundError"

After successful build of Android application it crashes with error:

java.lang.NoClassDefFoundError: com.google.android.apps.analytics.GoogleAnalyticsTracker

Or some other class. Probably you have installed new ADT17 update. ;)

Resolution: Move \lib to \libs folder.