Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It is possible that for the purpose of development there should be an android account used for this.
Alternatively, it is possible these files are supposed to be owned by the user doing development, and the only reason these got odd UID/GID assignments was that the files were untarred by root into the users home directory.
Normally, for files in the users account, the users account would be used to untar them - and thus get owned by the user. This is because tar uses --same-owner by default for root, which is useful for restoring from backup files produced by tar.
The tgz pacakage archive I downloaded, is, I presume according to what I read a Slackware package. I used alien to convert it into a Debian .deb package. Then, used dpkg -i to install it. Oddly enough, the installed files were copied to /android-studio! So, I moved /android-studio to my home directory where there are less privileges.
I am on Debian Wheezy and there is no /data directory. I know that using chown recursively can ruin an entire installation. I know there is something wrong because, Debian does not install programs to the root directory. These headaches are because the package wasn't properly ported to Debian.
Actually, the solution was to change the file ownership recursively! After, the change I was able to create a new project and the full IDE loaded successfully. The only error that I am receiving is that libz.so.1 is not found although it exists.
EDIT:
For the benefit of anyone reading this thread, the solution for the missing libz.so.1 was to install lib32z1. Since, my computer's RAM is limited I opted out of installing the complete set of 32 bit libraries.
So, in short, the solution was to change the file ownership using chown recursively. Anyone using chown in this way, should be aware of the command's potential to destroy an entire installation, so, be aware of the danger and use with caution.
Other than that, enjoy your shiny apps using android-studio. As a last advice, don't use the device (mobile phone) emulator because it is very slow even on good hardware.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.