Which of the following android package is emulator - android

I am trying to setup react native without android studio by following this. Below are the packages that it asks me to install:
sudo /opt/android/tools/bin/sdkmanager "platform-tools" "platforms;android-28" "build-tools;28.0.3" "add-ons;addon-google_apis-google-24"
But the problem is that it is also downloading emulator, which I don't want because I would be running on a real device( It is large as well). I am unable to identify which of the above package is leading to installation of emulator.
Can you please help me so that emulator is not downloaded.

As I have checked for it by dedicating some time, I have found that installing build tools will install emulator as well.

Related

Problems with zsh, flutter and android studio

I'm completely lost at this point. I turned on machine today and android studio couldn't recognize the device but vs code could, after spending hours finding solution. I reinstalled android studio and reset everything and now android studio recognizes the device but after clicking on run I see Unable to locate a development device; please run 'flutter doctor' for information about installing additional components.
but running flutter doctor shows this
[✗] Android toolchain - develop for Android devices
✗ ANDROID_HOME =
/home/udaykhalsa/Android/Sdk:/home/udaykhalsa/Android/Sdk:/home/udaykhalsa
/Android/Sdk/platform-tools:/home/udaykhalsa/Programming-EnvironmentFiles/
flutter/bin:/home/udaykhalsa/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/
local/sbin:/opt/android-sdk/tools:/opt/android-sdk/tools/bin:/var/lib/flat
pak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendo
r_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin
but Android SDK not found at this location.
.zshrc
export ZSH="/home/udaykhalsa/.oh-my-zsh"
export PATH="/home/udaykhalsa/Programming-EnvironmentFiles/flutter/bin":$PATH
export PATH="/home/udaykhalsa/Android/Sdk/platform-tools":$PATH
export PATH="/home/udaykhalsa/Android/Sdk":$PATH
export ANDROID_HOME="/home/udaykhalsa/Android/Sdk":$PATH
I'm not daring to make any changes to zshrc as I did a while back all the commands were not found. Any help appreciated.
Perform below, and did you observe the 'adb' file?
$ ls $ANDROID_HOME/platform-tools/adb
Am using macOS, my sdk is found inside 'Library' folder unlike yours. Should NOT be an issue if Android Studio is already working for you.
export ANDROID_HOME="/Users/someuser/Library/Android/sdk":$PATH
To see connected devices, issue either commands:
$ adb devices
$ flutter devices

Unity build error. [Failed to install the following Android SDK packages as some licences have not been accepted. ]

After I carried out some commands below on terminal to test my unity app with android emulators. My Unity project started failing build over and over again due to the same error in the pics below. If there is anybody who are familiar with this issue, would you give me advice to address it?
The command I carried out on terminal
1, export PATH=$PATH:/Users/userName/Library/Android/sdk/platform-tools
2, echo PATH=$PATH: /Users/userName/Library/Android/sdk
3, cd /Users/userName/Desktop/AppName.apk
4, adb install AppName.apk
The details of the error
enter image description here
enter image description here
For people who may face the same errors in the future,
The problem was there is no licences file in /Users/username/Desktop/2019.2.9f1/PlaybackEngines/AndroidPlayer/SDK.
So I copied the file from /Users/username/Library/Android/sdk and paste it to the unity directory above.
The errors was successfully addressed.
I wish nobody wasted their time anymore because of this error.
Open command prompt as admin and run
{path_to_sdk_folder}/tools/bin/sdkmanager.bat --licenses
and accept all.
If anyone else happens to run into this problem, and you are using Unity Hub, run the following command from Terminal.
$ find /Applications/Unity/Hub/Editor -name "sdkmanager" -exec {} --licenses \;
This will find all of the installed SDKs and check that all licenses are accepted. If they aren't, you will be prompted to accept.
You can run the command again to double-check everything is 100%.
Keep bumping into this now Unity manages the platforms, Android Studio then grumbles about it if you point Android Studio at the platforms location Unity is using.
On Windows the quick and dirty fix is to run Android Studio as administrator, it then does what it needs and you can then go back to running Android Studio normally.
Not sure what the effects are long term, but it appears to work for me. Especially as I am not using the platform that Android Studio is grumbling about.
However, clearly, this isn't a great solution as the SDK manager in Android Studio doesn't see the platforms Unity claims to have installed.
On a Windows machine, you'll need to find your sdkmanager.bat for your current version of Unity. For you this location could be something like
C:\Program Files\Unity\<version>\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\bin\sdkmanager.bat
or
C:\Program Files\Unity\Hub\Editor\<version>\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\bin\sdkmanager.bat
Once you find this, you can execute it with the --licenses flag in Powershell or your shell of choice, like below. Make sure that you run your shell as an administrator.
.\sdkmanager.bat --licenses
You'll then be prompted to review any licenses that have yet to be accepted. Answering y to these will resolve the issue.
Kotaro is right.
For people who may face the same errors in the future,
The problem was there is no licences file in /Users/username/Desktop/2019.2.9f1/PlaybackEngines/AndroidPlayer/SDK.
So I copied the file from /Users/username/Library/Android/sdk and paste it to the unity directory above.
The errors was successfully addressed.
I wish nobody wasted their time anymore because of this error.
Cant comment so :
This is correct but make sure you open CMD with admin privileges as it wont save the licenses!
Go to src -> flutter -> flutter -> flutter_console
and type flutter doctor --android-licenses. Click y.

Android command line tools not installing correctly?

I'd like to start developing a react-native app, and to do that I need an emulator. I am on an Ubuntu virtual machine, so I figured just using the command line tools would be fine. After fumbling around for a bit I ran
$ANDROID_HOME/bin/sdkmanager --include_obsolete --update
and
$ANDROID_HOME/bin/sdkmanager "platform-tools" "platforms;android-26"
Both returned "done" pretty quickly.
I tried to create an image to load up in the emulator...
$ANDROID_HOME/bin/avdmanager create avd --name "testbed" -k "system-
images;android-26;x64"
Error: Package path is not valid. Valid system image paths are:
And no system images are listed. How do I download system images properly?

MAC - I can't open Android Device Monitor on Mac

I have opened it as an administrator and I don't want to install anything unnecessary.
When I tried to open Android Device Monitor through Android Studio: Tools > Android > Android Device Monitor. It always shows the following screen shot:
Screen shot that shows "An error has occurred"
I have found solutions for windows, but I did not find solutions for mac.
One piece from the log:
!ENTRY org.eclipse.osgi 4 0 2015-12-02 22:52:40.714
!MESSAGE Bundle reference:file:org.apache.lucene.core_2.9.1.v201101211721.jar#4 not found.
There are lots of similar lines like this showing "something not found".
So what is missing? How do I install the exact missing parts? Thanks! (There is no enough space for me to install everything from android studio.)
First of all update Android SDK Tools from SDK Manager
Open a terminal window
Navigate to your SDK
Locate the 'tools' folder
cd into it
run: sudo ./monitor
Type in your password
Hope it might solve your problem.
JPCS's solution worked for me; install Java 8 and then the Android Device Monitor will work:
First install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then update and install Java 8
$ brew update
$ brew cask install java
I followed some steps and after long hours struggle all things got sort it out and i got success to run device moniter on Mac OS x.
what i did ?
I installed Homebrew and used its some commands to install java , because its so easy to download and install java in terminal using home-brew. its very good tool to sort out java problems automatically . but here one thing is to keep in mind . which is below ->
when you install java using Homebrew then please make sure you are using same version of java and jre with android studio.in my case my android studio using jre_1.8.0 , so installed java8.
Their some steps to follow.
just paste in terminal to download Homebrew to your system.
1.) /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.) $ brew tap caskroom/versions
$ brew cask install java8.
this will download and install java 8 automatically to your mac OSx.i installed java 8 for my case,java 9 is also available but i used java8. because i added jre 8 in my android studio compile path.so its required both in same version to aviod conflict.
3.) so once its installed, just restart your android studio and run device moniter from android studio.now you android studio will able to launch device moniter without any conflict.
Thank Happy coding :)
I had the same issue! Since I am not comfortable with using terminal, I just tried updating to the latest Java JDK and it seemed to fix the problem

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