studio.sh is not working on ubuntu 17.04 - android

i have a problem in running ./studio.sh and when I try to run it by terminal , this error shows in the picture attached
click to see image

You need to to into the directory where your studio.sh file exists as below :
/opt/android-studio/bin/studio.sh
I am using path to android studio in my system, You need to your system's path to android studio, where your android studio is located.

Related

How to open Andorid Studio projects by Windows CMD?

I want to open a project in Android Studio (Windows) and open a specified project file, as well as the row and column.
I intend to do this by commands in CMD. It's possible? how do I do that?
I tried to use this below CMD command but the only thing i got was to open the project but no success in opening the file in the specified line and command
./studio64.exe C:\dev\flutter\MyProject\ -line 30 -column 5 main.dart

Android Studio: Cannot run program "node"

I have project in React Native, and I'm not being able to build on the Android Studio due the following error.
Here's the detailed log with additional info:
java.io.IOException: Cannot run program "node" (in directory "/Users/fabioernanni/git/fintech-ewallet-mobile/android"): error=2, No such file or directory
java.io.IOException: error=2, No such file or directory
Cause: error=2, No such file or directory
I have tried to reinstall Node, Android Studio, to link the tscript library so the Android Studio would recognize the "node" but nothing seems to help.
I have a similar problem with Android Studio (bumble bee) version with node on My Mac M1 Chip 
so to solve this open your Android Studio from terminal
.
To Open Android Studio from terminal on Mac m1 just open your Terminal and paste the following command
open -a /Applications/Android\ Studio.app
this will open your android studio and then you can open your project and can run build from android studio
Note : be sure that Android studio is not running state if its running just Quite it and then launch from Terminal
Do these steps to solve it:-
STEP 1: First quit the android studio, if it is in a running state.
command + Q
STEP 2: Enable the permission for android studio printenv.
sudo chmod +x /Applications/Android\ Studio.app/Contents/bin/printenv
STEP 3: Open android studio from terminal app.
open -a /Applications/Android\ Studio.app

]Unable to launch Android Studio in Ubuntu 14

I enter this command in terminal first I change the directory to terminal and then when I try to open the studio.sh It gives bash error
sarthak#sarthak:~/development$ /android-sdk/bin/studio.sh
bash: /android-sdk/bin/studio.sh: No such file or directory
sarthak#sarthak:~/development$
Please Help
Because the script file is in bin directory you need to go there to run it.
Go to the bin directory in terminal by doing:
cd ../../bin
And then run the script by doing:
./studio.sh
You can install it from the repository here
Android studio paolorotolo repository
launch it first time from studio.sh in bin directory like this:
cd opt/android-studio/bin/
./studio.sh
this will launch android studio.
And from android stuio tools tab -> genereate desktop entry to see it in search and programs.

When tried to run eclipse,Pypar2 window pops up

I have downloaded the adt-bundle for linux and extracted it. Moved the extracted folder in "android" directory in my /home directory. I have also installed openjdk 6. So when i try to run eclipse, Pypar2 window pops up and i just don't understand how do i run eclipse.
If i uninstall PyPar2, it says 'Could not display "/home/siddhartharao17/Androi...20131030/eclipse/eclipse".' There is no application installed for executable files. Do you want to search for application to open this file?
Please help me!!
The problem is that the executable doesn't have the required permissions.
Simple resolution without using the terminal:
Right-click the executable -> Properties -> Permissions.
Check the checkbox that says Allow executing file as program.
Done!
Using the terminal:
navigate to your dir.
Execute the following:
chmod 711 eclipse
Done!

PhoneGap: Unable to Create Android App using Terminal

I try to create an android app using PhoneGap on my Mac. But, I only can create the app (hello) and couldn't create the Android platform for it using $ cordova platform add android command.
The error message I get is: [Error: The command android failed. Make sure you have the latest Android SDK installed, and the android command (inside the tools/ folder) added to your path. Output: ]
The screenshot:
I try to put the PATH in the bash profile file using touch ~/.bash_profile; open ~/.bash_profile method, but it still didn't work.
How to solve this problem?
try this one
install android sdk in /Applications then rename the andoid sdk folder's name to android_sdk
create .bash_profile in this directory, /Users/zulhilmizainudin
open .bash_profile then type this command
export PATH=/Applications/android_sdk/tools:$PATH
export ANDROID="/Applications/android_sdk/tools"
Save .bash_profile file
type android command in your terminal

Categories

Resources