Newish to Mac and having installed Android Studio it doesn't seem to have installed the Android SDK.
Any search for installing Android SDK seems to just refer me to install Android Studio again which I've tried with no success.
Install via brew which will install to /usr/local/opt/android-sdk
GoTo: Android Studio > Configure > SDK Manager.
Then update the location of the SDK within Android Studio as shown below.
Related
I am trying to install the intel haxm but I see this error : Unable to install IntelĀ® HAXM
HAXM can only be installed on Windows or Mac.
Please file a bug against Android Studio.
I am trying to set the android studio emulator in visual studio for react native. But i cant set install first intel
After too much Google and research I found to install HAXM from external other then Android Studio Use browser and go the below URl Dowload the setup file of HAXm and run the installation
https://github.com/intel/haxm/releases
Intel HAXM installs successfully (according to the log) both through Android Studio and directly from Intel's executable. However, Android Studio says "HAXM is not installed" and prompts me to install it in an endless cycle (Not installed, install? Installed successfully. Not installed, install?). I am new to all this so could someone help me out with simple words, thanks!
I am trying to update my studio from version 2.2.3 to 2.3 in Ubuntu 16.04 LTS. I am very new to Ubuntu and I can't seem to figure out as why is studio not updating. When I click update and restart it downloads the patches and closes and doesn't restarts. When I open it manually then it still is on the version 2.2.3 and again prompts to download and install latest version.
I am having a similar problem while updating from 2.3.2 to 2.3.3.
Go to the bin folder of your Android Studio installation folder: e.g. cd opt/android-studio/bin
Provide run permission for studio.sh file: chmod +x studio.sh
Run Android Studio from here: ./studio.sh
and try "update and restart" from android studio.
Hello to all who are interesting in the issue,
I feel confused about gradle version in Android studio.
I am using the Android Studio 2.2.2. In the project build.gradle. I have classpath 'com.android.tools.build:gradle:2.2.2 which makes me believing the Android studio is using gradle 2.2.2.
In the gradle-wrapper.properties, It has https\://services.gradle.org/distributions/gradle-2.14.1-all.zip. So it means the gradlew build scripts requires 2.14.
When I tried to list tasks in the project, I used the terminal gradle tasks, I had following error:
java.lang.UnsupportedClassVersionError: com/android/build/gradle/LibraryPlugin : Unsupported major.minor version 52.0
And when I run gradlew -v I found the gradle version is 2.10. It could be me, I manually install the gradle by using apt-get install gradle. The default version might be 2.10.
My question is, which version gradle the android studio is using and how can I update the gradle to 'correct' version so I could list the tasks in the android project?
Edit 1:
I tried to update gradle to 2.14. By using
sudo apt-cache search gradle
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt-get install gradle-2.14
I also tried to upgrade the gradle to version 2.14.1, but still having the same error.
Thanks for your help
Rong
A solution of solving the version 52.0 issue One suggested solution (with the similar situation I am having) solved the problem by decrease the gradle version to 2.10, I really do not want to do that, since I wish to use the update-to-date version that android studio is using.
As to the solution solved that issue: I am already having the Android 6.0 API 23 installed in the Android studio. The Android SDK 6.0 does not fix the problem in my case.
environment:
Android studio 2.2.2
Java sdk: 1.7
OS: Ubuntu 16.04 LTS
Got it work Thanks.
I installed both java 1.7 and 1.8 and I was using 1.7 in the terminal by using sudo update-alternatives --config javac. By some reason, I believe the android uses java 1.8. I changed update-alternatives option to java 1.8. The command 'gradlew tasks' starting to work as expected.
yes, but update $JAVA_HOME$ also accordingly.
I tried to get Genymotion running through Android Studio with VirtualBox installed through homebrew Cask. When trying to launch Genymotion through Android Studio using the Genymotion Device Manager button in the toolbar, I get the error Genymotion: Initialize Engine: failed in the event log, which seems to be the error related to when VirtualBox isn't installed.
Running Genymotion on its own outside of Android Studio works perfectly fine.
I was able to fix this by uninstalling VirtualBox from Cask and reinstalling with the .dmg provided by VirtualBox themselves. That's fine for me right now, but I am wondering how one would get a Cask-installed VirtualBox linked up to Android Studio.
Make sure you have installed Homebrew.
brew cask install virtualbox
brew cask install genymotion