snapcrafters / android-studio

A community-maintained package to easily install Android Studio on Linux
https://developer.android.com/studio/index.html
47 stars 16 forks source link

Automatically install Google-specified Linux Libraries #54

Closed ciscorucinski closed 2 years ago

ciscorucinski commented 5 years ago

If you are running Android Studio on a 64-bit Linux machine, you may need to install some specific libraries, as follows [1]...

If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 lib32bz2-1.0

If you are running 64-bit Fedora, the command is:

sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686

There are other highly suggested libraries to install for hardware acceleration via KVM [2]

om26er commented 5 years ago

@ciscorucinski The current working solution is to install qemu-kvm deb package on the host of the emulator to start without the permissions issue.

My testing tells that installing the 32bit libraries are no longer required with the current version of Android Studio on Linux, I believe they might have missed to update the instructions.

ciscorucinski commented 5 years ago

Does your testing only encompass the installation of Android Studio on the machine? You have only verified that you don't need those libraries for installation, correct?

I take it you are not testing other important aspects that are common use cases for Android development with Android Studio such as running an emulator with hardware acceleration.

So those libraries might still very well be needed for other aspects of development (which is why these instructions are in two different places in Google documentation)

But I'm not sure what each library does. Edit: I'm not saying you are incorrect. Maybe they aren't needed anymore and they need to update the documentation!?

om26er commented 5 years ago

Is there a specific issue you are facing with the snap or have some sort of performance difference benchmark for us to look at ?

From my real world testing (I develop using Android Studio), those 32bit packages are not needed and Google probably needs to update its instructions.

ciscorucinski commented 5 years ago

I left a Documentation Bug Report on the Google Issue Tracker: https://issuetracker.google.com/issues/132609060

Check it out. Add any information you believe is useful or missing. Star it if you really want to know more information.

ciscorucinski commented 5 years ago

@om26er the bug has been assigned. Stay tuned for updates

om26er commented 2 years ago

Closing the issue as it was a documentation issue on Google's end, which has been fixed for a while