Code Monkey home page Code Monkey logo

android-studio's Introduction

[DEPRECATED] Android Studio for Ubuntu

NOTICE: THIS PROJECT IS NO LONGER SUPPORTED.
Please consider using ubuntu-make or mfonville's repo instead.

Install Android Studio VIA ubuntu-make

  # Install Ubuntu Make
  sudo apt install ubuntu-make
  
  # Install Android Studio
  umake android

Android Studio by Google packaged for Ubuntu. Visit the official website here.

FAQ

32-bit compatibility libraries

Q: I can't correctly build my project on Ubuntu amd64. Even if using a sample project with all default settings.

A: You probably need to install 32-bit compatibility libraries. Open a terminal and run:

sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 lib32z1-dev

Unable to start

Q: When I click on the icon, Android Studio just doesn't start. A: Did you install Java? Try to install Java 8 from this PPA.

Also, try:

/opt/android-studio/bin/studio.sh

If you have this error, you probably have to install the jdk:

Start Failed: Internal error. Please report to https://code.google.com/p/android/issues

java.lang.NoClassDefFoundError: com.intellij.util.lang.ClassPath
at java.lang.Class.initializeClass(libgcj.so.14)
[...]
Invisible icon

Q: Android Studio doesn't appear in Unity's dash / GNOME Overview.

A: I'm currently working on this issue. Meanwhile, you can manually start Android Studio with the following command:

/opt/android-studio/bin/studio.sh

HiDPI support

Q: Android Studio looks strange. Some icons and objects are way too small.

A: To fix some of these problems add

-Dhidpi=true

to these files:

/opt/android-studio/bin/studio.vmoptions

/opt/android-studio/bin/studio64.vmoptions

screenshot from 2014-11-22 17 28 23

android-studio's People

Contributors

andrew-codechimp avatar mmk2410 avatar paolorotolo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-studio's Issues

OpenJDK 9 error

I'm getting this error after finished installation. I did not install another programs. Just Android Studio
I'm using Ubuntu 16.04 LTS in Vmware

Errors were encountered while processing:
/var/cache/apt/archives/openjdk-9-jdk_9~b114-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

dpkg fails while setting up android-studio

This is on Ubunu 15.04, 64 bit:

$ sudo apt-get install android-studio

[...]

Setting up android-studio (4.8.3-ubuntu0) ...
unzip:  cannot find or open /opt/android-studio-ide-*, /opt/android-studio-ide-*.zip or /opt/android-studio-ide-*.ZIP.

No zipfiles found.
rm: cannot remove ‘/opt/android-studio-ide-*’: No such file or directory
find: `/opt/android-studio/': No such file or directory
find: `/opt/android-studio/': No such file or directory
dpkg: error processing package android-studio (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 android-studio

Does it interfere with android-sdk (from repo) ?

If I install android-sdk from repo (sudo apt-get install android-sdk), is it (android-studio) going to interfere with it? If I install google play service api using android-sdk, will Android studio see it?

OpenJDK 8 Support

Hi,

could you maybe change the dependencies of the package in such a way that it would also be compatible if openjdk-8 is installed? e.g. 'depend' on java-sdk instead of on default-jdk? (and then make only a 'suggest' on default-jdk)

thank you!

Add 32-bit dependencies on 64-bit package

Hello there,

first of all, nice work, your package make it way easier to install Android Studio on Ubuntu.

That being said, I found an error when I first try to create a program, the first build failed.
Searching on Google, I found this Stack Overflow with the exact error: http://stackoverflow.com/questions/24808920/first-build-with-androidstudio-failed

It says: "The Android tools need 32-bit compatibility libraries installed. I had the exact same problem, and this worked for me:

sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 lib32z1-dev

Then restart Android Studio."

It solved my problem, so I think you should add those dependencies.

Thank you.

Getting Errors were encountered while processing: /var/cache/apt/archives/openjdk-9-jdk_9~b114-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

Getting this error on Ubuntu 16.04, 64 bit:

$ sudo apt-get install android-studio
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  openjdk-9-jdk openjdk-9-jdk-headless
Suggested packages:
  openjdk-9-demo openjdk-9-source visualvm
The following NEW packages will be installed:
  android-studio openjdk-9-jdk openjdk-9-jdk-headless
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/385 kB of archives.
After this operation, 912 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Selecting previously unselected package openjdk-9-jdk-headless:amd64.
(Reading database ... 444016 files and directories currently installed.)
Preparing to unpack .../openjdk-9-jdk-headless_9~b114-0ubuntu1_amd64.deb ...
Unpacking openjdk-9-jdk-headless:amd64 (9~b114-0ubuntu1) ...
Preparing to unpack .../openjdk-9-jdk_9~b114-0ubuntu1_amd64.deb ...
Unpacking openjdk-9-jdk:amd64 (9~b114-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/openjdk-9-jdk_9~b114-0ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/jvm/java-9-openjdk-amd64/include/linux/jawt_md.h', which is also in package openjdk-9-jdk-headless:amd64 9~b114-0ubuntu1
Selecting previously unselected package android-studio.
Preparing to unpack .../android-studio_5.2.1-ubuntu0_all.deb ...
--2016-08-08 18:24:45--  https://dl.google.com/dl/android/studio/ide-zips/2.1.0.9/android-studio-ide-143.2790544-linux.zip
Resolving dl.google.com (dl.google.com)... 2a00:1450:400c:c09::5d, 74.125.136.91, 74.125.136.190, ...
Connecting to dl.google.com (dl.google.com)|2a00:1450:400c:c09::5d|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 298122012 (284M) [application/zip]
Saving to: 'android-studio-ide-143.2790544-linux.zip.1'

android-studio-ide- 100%[===================>] 284.31M  2.69MB/s    in 1m 55s  

2016-08-08 18:26:40 (2.48 MB/s) - 'android-studio-ide-143.2790544-linux.zip.1' saved [298122012/298122012]

Unpacking android-studio (5.2.1-ubuntu0) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/openjdk-9-jdk_9~b114-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

What is this?

@paolorotolo I saw this project for the first time and I feel that it automates installation of Android studio which is too much command-line-hard-work.
Did I got it right? How can I explain this to a child? I would suggest you to make your product description understandable in layman terms.

Suggestion: Menu items for standalone AVD & SDK managers

I like that this package sets up an Ubuntu menu item for Android Studio. It'd be nice if it could also do that for the standalone SDK & AVD manager programs. I use these often, so I wound up manually setting up menu items for them:

SDK standalone: ~/Android/Sdk/tools/android sdk
AVD standalone: ~/Android/Sdk/tools/android avd

I also extracted icons for the menu items, from /opt/android-studio/plugins/android/lib/android.jar:

icons/sdk_manager_large.png
icons/[email protected]

It's been a while since I installed, but I think the SDK installation was done by Android Studio on my first launch, which placed it into that ~/Android location by default. So, it may be tricky to set up those menu items because they wouldn't work until after the user has manually carried out that step. But it'd be cool if you could somehow make this work. :)

Update to studio release 14

Hello my friends !

Is there a way that you create a new package update providing release 14 of android studio? This would be great. The version is now stable. Probably you could publish a short instruction how to update the dep package, so others could help you.

Thank you very much,

Maciej

Icon Hardcoded

The icon is located in /usr/share/icons/ where as it should be in /usr/share/icons/hicolor/[size]/.

Got an issue to install in with apt-get repository

Don't know if it's only me but just wanted to let you know on Ubuntu 14.04.4 64 bit I wasn't able to install it with apt-get (maybe a bug somewhere). Had to remove it then try again with the .deb file and now it's working well

Why I can't start a new android studio project

Dear sir:
I had install the android studion in ubuntu 14.04. but I can't start a new android studio project, and the windows can't close. I try to use the command to run it, but it also failed.

Best wishes!
regards Liu

Unnecessary world-writable permissions for Auto-Update

The whole software installed into /opt world-writeable in order the Auto-Updater to work. What is the point using Auto-Updater if you package a software by your self.

This not only contradicts FSH but is a security issue in general. Please remove the CHMODs in postinstall.

Unmet dependencies

I get the following error message from the install.

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
android-studio : Depends: lib32ncurses5 but it is not installable
Depends: libc6-i386 but it is not installable
Depends: lib32stdc++6 but it is not installable
Depends: lib32gcc1 but it is not installable
Depends: lib32z1 but it is not installable
Depends: lib32z1-dev but it is not installable
E: Unable to correct problems, you have held broken packages.

These dependencies don have an installation candidate or is not avaiable.

Unable to launch

Hi Paolo Rotolo,

I'm on a fresh install of Ubuntu 15.04. I installed via your repo Android Studio but the program doesn't appear anywhere. Even via a terminal my PC didn't found the bin or something related to.

Thanks.

Cannot Launch Android Studio on Ubuntu 16.10

Problem

After installing android studio on my Ubuntu 16.10, I restarted my computer and launch android studio by its launcher. However, it does not work. It just showed up in the launcher a few seconds and then nothing happen. What can I do?

Update

When I execute:

/opt/android-studio/bin/studio.sh

it shows me:

Unrecognized VM option 'MaxPermSize=350m'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Solution

This problem is finally solved by installing Oracle Java 1.8.

No zipfiles found

hi
i get this error while execute instALL command : sudo apt-get install android-studio

rm: cannot remove ‘/opt/android-studio-ide-*’: No such file or directory
find: /opt/android-studio/': No such file or directory find:/opt/android-studio/': No such file or directory
dpkg: error processing package android-studio (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
android-studio
E: Sub-process /usr/bin/dpkg returned an error code (1)

How to update to stable version?

How to update to stable version? im currently using 1.1.0 , and im checking update is this correct to update AS?

UPDATE: just the same as windows. thanks to this anyways :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.