├── README.md ├── eclipse-installation ├── enable-kvm ├── gnome-launcher ├── gnome-launcher_via_Android_Studio.png ├── installation.md ├── quick-launch_via_Android_Studio.png └── ubuntu-issues /README.md: -------------------------------------------------------------------------------- 1 | Android Studio Fedora 2 | ===================== 3 | 4 | Setting up Android Studio on Fedora 5 | --- 6 | Actually, work-flow tested on Fedora 25 Gnome (also Fedora 26 Beta) with Android Studio latest build 7 | 8 | Updated info at: 9 | https://cialu.net/how-to-set-up-android-studio-on-fedora-systems/ 10 | -------------------------------------------------------------------------------- /eclipse-installation: -------------------------------------------------------------------------------- 1 | ---------------- 2 | Install Eclipse, Android SDK and Eclipse Android binding 3 | ---------------- 4 | 5 | Open Terminal window and type: 6 | - sudo yum -y install eclipse 7 | (Eclipse Luna will be installed on Fedora 21 at Dec 2014) 8 | 9 | Download SDK from page: 10 | https://developer.android.com 11 | (If you have installed Android Studio, the Android SDK is already installed) 12 | 13 | Start Eclipse, then select Help > Install new software 14 | Click Add and insert: 15 | - http://download.eclipse.org/releases/luna/ or your version of Eclipse 16 | - https://dl-ssl.google.com/android/eclipse/ 17 | Restart Eclipse and Go to Window -> Preferences, click on Android and set SDK location to directory(e.g /home/user/Android/SDK) 18 | Click Apply and OK. 19 | Restart Eclipse 20 | 21 | 22 | ---------------- 23 | Optional JAVA Gnome Gtk bind for Eclipse 24 | ---------------- 25 | 26 | Open Terminal window and type: 27 | sudo yum install libjava-gnome-java 28 | 29 | In Eclipse, to compile with Java-Gnome bindings: 30 | - Select your Java App > Properties 31 | - Java Build Path > Libraries > Add External JARs 32 | - Choose 64 Bit Environment --> /usr/lib64/java-gnome/gtk.jar 33 | 32 Bit Environment --> /usr/lib/java-gnome/gtk.jar 34 | 35 | 36 | All references at http://java-gnome.sourceforge.net 37 | 38 | -------------------------------------------------------------------------------- /enable-kvm: -------------------------------------------------------------------------------- 1 | Kvm 2 | === 3 | 4 | Enable kvm virt acceleration for Android Virtual Device emulator 5 | 6 | Open Terminal window and type: 7 | - su -c "dnf install @virtualization" 8 | - su -c "systemctl start libvirtd" 9 | 10 | Verify that the kvm kernel modules were properly loaded 11 | - lsmod | grep kvm 12 | If you see kvm_amd or kvm_intel, you're on the way! 13 | 14 | Troubleshooting 15 | =============== 16 | Recommended other packages: 17 | - sudo dnf install virt-manager libvirt libvirt-python python-virtinst 18 | 19 | If you have another issues, try: 20 | - sudo modprobe kvm 21 | - sudo modprobe kvm_intel 22 | - sudo modprobe kvm_amd 23 | in base of your processor. 24 | -------------------------------------------------------------------------------- /gnome-launcher: -------------------------------------------------------------------------------- 1 | To create a Gnome Launcher in Fedora 21 for Android Studio, 2 | open a Terminal window and type: 3 | - sudo vi /usr/share/applications/asb.desktop 4 | 5 | Edit the file like this: 6 | 7 | [Desktop Entry] 8 | Encoding=UTF-8 9 | Name=Android Studio 10 | Comment=Android Studio 1-0 11 | Exec=asb 12 | Icon=/opt/android-studio/bin/idea.png 13 | Terminal=false 14 | Type=Application 15 | Categories=GNOME;Application;Development; 16 | StartupNotify=true 17 | 18 | Alternatively use the function provided by Android Studio: 19 | Menu > Tools > Create Desktop Entry... 20 | See gnome-launcher_via_Android_Studio.png for screenshot. 21 | -------------------------------------------------------------------------------- /gnome-launcher_via_Android_Studio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cialu/AndroidStudioFedora/b05e562daf4fa45843ee2a188985f9a731259a18/gnome-launcher_via_Android_Studio.png -------------------------------------------------------------------------------- /installation.md: -------------------------------------------------------------------------------- 1 | - If you run a 64 bit system, in a terminal window do this 2 | **sudo dnf install zlib-devel.i686 ncurses-devel.i686 ant** 3 | 4 | - Install libs for mksdcard SDK Tool 5 | **sudo dnf install compat-libstdc++-296.i686 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 glibc.i686 glibc-devel.i686 libstdc++.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686** 6 | 7 | - Install Java development tools 8 | **sudo dnf install java-1.8.0-openjdk-devel.x86_64** 9 | 10 | - Download the Android Studio package from **http://developer.android.com/sdk/index.html** 11 | 12 | - Extract the package (it's ok also the Downloads folder) and relocate the Android Studio folder 13 | **mv /home/yourUserName/Downloads/android-studio /opt** 14 | 15 | - Make symbolic lynk for a quick launch 16 | - Using command line 17 | - ln -s /opt/android-studio/bin/studio.sh /usr/local/bin/asb 18 | - exit 19 | - Using Android Studio (see quick-launch_via_Android_Studio.png) 20 | - Run Andorid Studio with ./opt/android-studio/bin/studio.sh 21 | - Menu > Tools > Create Command-line Launcher... 22 | - Name: asb 23 | - Path: /usr/local/bin 24 | - Click OK 25 | - Using Alacarte (sudo dnf install alacarte) 26 | - New item under Programming 27 | - Browse to /opt/android-studio/bin/studio.sh 28 | - Browse icon to /opt/android-studio/bin/studio.png 29 | 30 | - Check Java environment 31 | - echo $JAVA_HOME 32 | If it isn't /usr/lib/jvm/default-java, type: 33 | - export JAVA_HOME=/usr/lib/jvm/default-java 34 | 35 | - Run Android Studio and enjoy it 36 | - Typing asb in terminal 37 | - Using Android Studio icon in launcher 38 | -------------------------------------------------------------------------------- /quick-launch_via_Android_Studio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cialu/AndroidStudioFedora/b05e562daf4fa45843ee2a188985f9a731259a18/quick-launch_via_Android_Studio.png -------------------------------------------------------------------------------- /ubuntu-issues: -------------------------------------------------------------------------------- 1 | Both Eclipse with Android SDK and Android Studio under Ubuntu, sometimes, show an issue about libraries: 2 | '..build-tools/21.1.2/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory' 3 | 4 | I solved this issue, using: 5 | sudo apt-get install lib32z1 6 | 7 | and cleaning my projects or restarting the dev program. 8 | --------------------------------------------------------------------------------