Unable to set JAVA_HOME to jdk

I am trying to run android studio on ubuntu 14.04 LTS. But when I run the studio.sh script, i am asked to set JAVA_HOME to jdk from jre. Despite the fact that I have set JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64 from the environment file in etc and added my own script in profile.d, the error is still there. Where … Read more

Android Studio sdk directory

I installed android-studio through ./studio.sh command in terminal and manually created desktop-entry with following details in it : [Desktop Entry] Version=1.5.1 Type=Application Name=Android Studio Exec=bash -i “/opt/android-studio/bin/studio.sh” Icon=/opt/android-studio/bin/studio.png Categories=Development;IDE; Terminal=false StartupNotify=true StartupWMClass=jetbrains-android-studio Name[en_GB]=android-studio.desktop Whenever I launch android-studio through icon launcher it again runs the setup wizard and ask to download sdk. I have already downloaded … Read more

Wireless keyboard not detected by AVD emulator on Linux

I am debugging some apps using the Android AVD images running in the emulator on Linux, however, I am not able to type anything with the wireless keyboard, I can’t replicate this issue on Windows or OSX, though I have been able to verify this on at least 2 different linux boxes with 2 different … Read more

What is the name for application/program button fonts?

I want to change font size of the various context menu options (“File” ->, “Window” -> etc) in Android Studio. But when I try to google “increase font size in android studio” the search results refer to increasing font size in “Editor”, but not of the program buttons/options themselves. What is the technical name for … Read more

How to run VLC (with stream) inside android app?

I want to run vlc with a network stream (http://mumsite.cdnsrv.jio.com/jiotv.live.cdn.jio.com/Aaj_Tak/Aaj_Tak_800.m3u8) with libvlc. I want to run VLC because I can’t get play it using hls.js, flashls or any other web based streaming. VLC is fine for me on both PC and Android. Possible solution:- Run VLC with network stream from my app. Run VLC inside … Read more

Build failed at Cmake while building native module

I am building a cordova project which requires cmake for building the native modules for android. Everything was working well and the build was successful but after upgrading the cmake to 3.10.2 on android studio I am getting this error. What went wrong: Execution failed for task ‘:generateJsonModelDebug’. > Error occurred while communicating with CMake … Read more

Android Studio error: java.lang.NoClassDefFoundError: net/miginfocom/layout/PlatformDefaults

I recently unzipped the latest Windows 10 32-bit Android Studio version and followed the guide to running the program. Everything was unzipped properly. When I run the android studio application, it gave me an error. Here is what it looks like: Internal error. Please report to https://code.google.com/p/android/issues java.lang.NoClassDefFoundError: net/miginfocom/layout/PlatformDefaults at com.intellij.idea.IdeaApplication.patchSystem(IdeaApplication.java:174) at com.intellij.idea.IdeaApplication.(IdeaApplication.java:84) at com.intellij.idea.MainImpl$1.lambda$start$1(MainImpl.java:45) … Read more