I want to install Android SDK, so I manually installed Java JDK 7u51, downloaded SDK ADT bundle for Linux x64, and tried to run it. When I run android, the SDK manager windows hangs halfway through the initial downloading process every time. Opening it with the terminal gives me
Error in `java': malloc(): memory corruption: 0x00007ffcd06de5b0
before it hangs. Any idea how to solve this? I am on Linux Mint x64 KDE.
What I did was:
- Download Java SE JDK 7u51 (tar.gz format) from their site.
- Extract content to
/usr/lib/jvm/
- Run
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_51/jre/bin/java 1
cd /usr/bin
sudo ln -s /usr/lib/jvm/jdk1.6.0_XX/bin/javac
sudo ln -s /usr/lib/jvm/jdk1.6.0_XX/bin/jar
sudo ln -s /usr/lib/jvm/jdk1.6.0_XX/bin/javadoc
- Download SDK ADT bundle for Linux x64
- Extract it under
/home/username/Android
- Run android in tools folder.
EDIT
developer.android.com said I should run eclipse to setup the ADT bundle. When I did that in terminal, I got a different error:
Error in `/usr/bin/java': double free or corruption (!prev): 0x00007fbb08816b30
Is there something wrong with my Java then?
EDIT2
I've reinstalled Linux, and ONLY ran sudo apt-get update
&& sudo apt-get dist-upgrade
. Didn't install a new Java. It's using OpenJDK Java1.0.7_51
now, and when I run "android" it still give me the same error!
Error in `java': malloc(): memory corruption: 0x00007fd0d4797150
Although the code is slightly different. What gives?
/usr/lib/jvm/jdk1.6.0_XX/bin/javac
and you told us you install versionjdk1.7.0_51
? Are you sure ?