What to do if the adb command cannot be executed

What to do if the adb command cannot be executed

** Cause **

approach

How to pass the Path of the adb command

Find the Path where the adb command resides

Click Configure> Project Default> Project Structure at the bottom right. AndroidStudio_起動画面 Copy Path in Android SDK location image.png The adb command resides in the "platform-tools" folder inside the "Sdk" folder. image.png adb.exe is the adb command.

Pass Path to adb command

Open "System Properties". Click the "Environment Variables" button, click the variable Path in the system environment variables column, and click the "Edit" button. Click "New" and enter the Path to the platform-tools. image.png Finish editing the environment variable name with "OK", finish the environment variable with "OK", and finish the system property with "OK".

Then restart Android Studio and you'll be able to use the adb command.

Recommended Posts

What to do if the adb command cannot be executed
What to do if you can't use the rails command
What to do if you cannot execute with the command "Java package name / class name"
What to do if you cannot roll back the migration (UnknownMigrationVersionError)
What to do if the server tomcat dies
What to do if the debug gem installation fails
What to do if the Rails server can't start
What to do if SPA URL loading cannot be detected by WebView shouldOverrideUrlLoading
What to do if the build fails with the error "Module compiled with Swift x.x.x cannot be imported by the Swift x.x.x compiler"
[React.useRef] What to do when the latest state cannot be referenced in the event listener
[Ubuntu 20.04] What to do if the external monitor is not recognized
What to do if validation doesn't work with the update action
What to do if Cloud9 is full in the Rails tutorial
What to do if the Eclipse Maven dependency Jar is wrong
What to do if you forget the root password in CentOS7
What to do if you install Ubuntu
What to do about the "cannot be read or is not a valid ZIP file" error
What to do if the prefix c is not bound in JSP
What to do when CentOS cannot be started with VirtualBox on Catalina
[Composer] [Laravel] What to do if you cannot install due to insufficient memory
What to do if you don't like the code generated by swagger-codegen-cli
What to do if you push incorrect information
What to do if Operation not permitted is displayed when you execute a command in the terminal
What to do if you get the error message unrecognized selector send to instance "***"
What to do if the changes are not reflected in the jar manifest file
[Swift] What to do if the app icon is set but not reflected
What to do if you get To install the missing version, run `gem install bundler: 2.1.4`
What to do if build from command line fails in Android development environment
What to do if the rails server doesn't run out on AWS cloud9
[Ubuntu] What to do when MongoDB cannot be started due to a SocketException error
How to translate the error message into Japanese (What to do if you cannot log in for some reason)
What should I do to reload the updated Dockerfile?
What to do if you accidentally create a model
What to do if an ActionController :: UnknownFormat error occurs
What to do if the update does not take effect after deploying Rails AWS
What to do if you can't get the text of an element in Selenium
What to do if you get the error Couldn't find Item without an ID
What to do if the JSONHint annotation does not work with lombok and JSONIC
What to do if the breakpoint is shaded and does not stop during debugging
[Solution] What to do if you get a Docker error'ERROR: Cannot connect to the Docker daemon at unix: ///var/run/docker.sock. Is the docker daemon running?'
[Java] [Spring] What to do if you cannot Autowire with Type Mismatch after annotating Spring Security
What to do when Git Repository cannot be displayed in Team Explorer for Eclipse in Azure
[Rails] What to do if you accidentally install bundle in the production environment in your local environment
What to do if audio is not available on discordrb
What to do if you change the Listen Address from the settings screen with Mattermost docker
What to do if FacesMessage is set but not displayed
What to do if you installed Ruby with rbenv but the version does not change
# What to do if you accidentally do rails db: migrate: drop
What to do if you get a "Cannot Pull Container Error" when starting ECS ​​Fargate
[Rails] What to do when rails db: migrate cannot be done because there is no table referenced by the foreign key
What to do when Cannot apply expression operators to method binding
What to do if mysql2 gets a bundle install error
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
What to do if the app is not created with the latest Rails version installed when rails new
[Rails] What to do if data is not registered in DB
What to do when the changes in the Servlet are not reflected
What to do if you get angry with OpenSSL with pyenv install
Determine if the strings to be compared are the same in Java
[Logback] What to do if unnecessary files do not disappear during rotation
[Rails] What to do if you can't get parameters with form_with
About the language to be learned