An issue with Android Studio running on Linux -
i have installed android studio on manjaro linux, experiencing issues every time have run application scratch. namely, in order start application, have logged in root, have validate java_home environmental variable , start application ./studio.sh
here full code of that:
[nikodroid@manjaro ~]$ cd /usr/share/applications/android-studio/bin bash: cd: /usr/share/applications/android-studio/bin: permission denied [nikodroid@manjaro ~]$ sudo su [sudo] password nikodroid: [root@manjaro nikodroid]# cd /usr/share/applications/android-studio/bin [root@manjaro bin]# ./studio.sh which: no java in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl) error: cannot start android studio\nno jdk found. please validate either studio_jdk, jdk_home or java_home environment variable points valid jdk installation. [root@manjaro bin]# cd /usr/java/ [root@manjaro java]# export java_home=/usr/java/jdk1.7.0_21/ [root@manjaro java]# export path=$path:$java_home/bin [root@manjaro java]# cd /usr/share/applications/android-studio/bin/ [root@manjaro bin]# ./studio.sh
so, runs when keeping terminal session, once exit, application stops working. question is, can in order not every time want run application?
just mention, put following line
java_home=/usr/java/jdk1.7.0_21/
in /etc/environment/ in order persist environment variable, seems didn't work.
thanks!
it permission issue, looked , found out owner , group messed up, did changing permission/ownership with:
chown -r root:root android-studio
after this, changed dir with:
cd /usr/share/applications/android-studio/bin
and ran
./studio.sh
it loaded application without errors.
Comments
Post a Comment