Android studio ide install error on Mac Yosemite - android

When I downloaded android-studio-ide-141.2135290-mac and tried installing it on my Mac Yosemite, I faced errors such as:
file not found
the following SDK components were not installed: platfrom tools,extra-android-m2erepository and extra-google-m2erepository

In OS X run as admin the first time by opening a new Terminal and run the commands:
cd /Applications/Android\ Studio.app/Contents/MacOS/
sudo ./studio

Related

Install android studio on garuda linux

how can I install android studio on garuda linux using Terminal (fish konsole)
I have already tried to download android for debian but was unable to extract and install
INSTALLING ANDROID STUDIO ON ~: fish - konsole
On Arch Linux, snap can be installed from the Arch User Repository or by running a couple commands as follows.
clonning snapd
git clone https://aur.archlinux.org/snapd.git
cd snapd
makepkg -si
Once installed, run the folowing command to enable snap communication socke.
sudo systemctl enable --now snapd.socket
To enable classic snap support, run the following
sudo ln -s /var/lib/snapd/snap /snap
log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
Installing Android Studio
To install Android Studio, simply use the following command:
sudo snap install android-studio --classic
Thank you.

how to install android sdk tools (release 25.2.5) on ubuntu 16.04?

I was trying to install SDK tools (tools_r25.2.5-linux) downloaded from follwing link https://dl.google.com/android/repository/tools_r25.2.5-linux.zip on my Linux Ubuntu 16.04.
I run both the following command for installation
./android update sdk
sudo ./android update sdk
but the installation is stopping and giving this error
also ~./android/androidtool.cfg (both /root/.android and /home/user/.android directory) file contains following data
http.proxyPort=proper_port
http.proxyHost=proper_proxy
sdkman.show.update.only=true
sdkman.ask.adb.restart=false
sdkman.force.http=true
what issue is causing the problem? how can i solve this?

How to install Android studio in Ubuntu 14.04?

I have already downloaded the android studio IDE.zip and also downloaded the android SDK.
How do I install it, I'm new to Ubuntu ?
In Ubuntu you can use 2 approvach to install Android Studio First one is use the new Developer tools that Ubuntu Team integrated directly on ubuntu. For that you can follow this manual (is writted by an Ubuntu Team member)
https://paolorotolo.github.io/android-studio/
If you want to use the latest version you can simple unzip the file you already have and run the /bin/studio.sh file.
To do that, first check if the file studio.sh has run permissions pressing right click in the file, properties --> permission tab.
After that, open a terminal cntrl + alt + t and navigate to the folder where you unzip Android Studio.
Then after make cd /bin run studio.sh with ./studio.sh &
When you have Studio running you can go to Configure option and then select Create Desktop Entry to create a entry in your Unity launcher
You can install Android studio in Ubuntu with apt or apt-get command.
Please use the following commands:
sudo apt-add-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio

Error executing command 'ant' on Mac OS X 10.9 Mavericks when building for Android with PhoneGap/Cordova

Today I tried PhoneGap/Cordova with Mac OS X Mavericks. Building for iOS went just fine, but building for Android wasn't without some guesswork.
I installed Android 4.2.2 via the Android SDK Manager (I had to use the older API v17 since it wasn't compatible with a newer one), added the PATH environment variables for the SDK's platform-tools and tools and thought I was ready to take off by running the command:
phonegap run android
Nevertheless, I got the following error:
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] adding the Android platform...
[error] An error occured during creation of android sub-project. ERROR : executing command 'ant', make sure you have ant installed and added to your path.
The error message proved to be true as Apache Ant isn't in the path of Mac OS X Mavericks anymore.
Bulletproof solution:
Download and install Homebrew by executing following command in terminal:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Apache Ant via Homebrew by executing
brew install ant
Run the PhoneGap build again and it should successfully compile and install your Android app.
You can install ANT through macports or homebrew.
But if you want to do without 3rd party package managers, the problem can simply be fixed by downloading the binary release from the apache ANT web site and adding the binary to your system PATH.
For example, on Mountain Lion, in ~/.bash_profile and ~/.bashrc my path was setup like this:
export ANT_HOME="/usr/share/ant"
export PATH=$PATH:$ANT_HOME/bin
So after uncompressing apache-ant-1.9.2-bin.tar.bz2 I moved the resulting directory to /usr/share/ and renamed it ant.
Simple as that, the issue is fixed.
Note Don't forget to sudo chown -R root:wheel /usr/share/ant
As an alternative to homebrew, you could download and install macports. Once you have macports, you can use:
sudo port install apache-ant
it don't needed port and brew!
because you have android sdk package.
.1 edit your .bash_profile
export ANT_HOME="[your android_sdk_path/eclipse/plugins/org.apache.ant_1.8.3.v201301120609]"
// its only my org.apache.ant version, check your org.apache.ant version
export PATH=$PATH:$ANT_HOME/bin
.2 make ant command that can executed
chmod 770 [your ANT_HOME/bin/ant]
.3 test if you see below message. that's success!
command line execute: ant
Buildfile: build.xml does not exist!
Build failed
I encountered the same issue when trying to use Cordova. Turns out I already had brew, try which brew, but it was outdated. So, I had to update it first:
Update brew: brew update
Install Apache Ant: brew install ant
In my case, I have macport installed already. I simply updated my macport:
sudo port selfupdate
sudo port upgrade outdated
Then install apache-ant:
sudo port install apache-ant
Finally, I add ant to my alias list in my .bash_profile:
alias ant='/opt/local/bin/ant'
Then you are all set.
For OSX your path needs to include /Users/yourusername
their example: /Development/adt-bundle/sdk/platform-tools
needs to be: /Users/yourusername/Development/adt-bundle/sdk/platform-tools

Problems getting Android Studio to build and install project on Ubuntu

When I go to install the packages from with Android Studio I get a "ADB not responding" error with wait/restart/close options.
I can run adb from a term. I can see my device and install the apk from the cmd line, but it doesn't work from within Android Studio.
In the terminal (that is running Android Studio) I get the following
03:56:36 E/adb: Unexpected exception 'Cannot run program "/media/5b317046-147a-42ee-aec1-f73caf1922c5/home/kloud9/WorkSpace/downloads/workspace/android-studio/sdk/platform-tools/adb": error=13, Permission denied' while attempting to get adb version from '/media/5b317046-147a-42ee-aec1-f73caf1922c5/home/kloud9/WorkSpace/downloads/workspace/android-studio/sdk/platform-tools/adb'
I have tried running Android Studio as sudo, but that doesn't help. I have all the environment variables set correctly, I am running oracle sun java jdk1.7.0. Any thoughts on what to try next?
Thanks,
Joe
I had the same issue. This fixed it for me.
sudo apt-get install ia32-libs

Categories

Resources