Tag Archives: android studio

Android Studio: Waiting target device come online

Because two days ago, I upgraded Android studio from version 2 . three . Upgrade 3 to 3 . 3. At the same time, we also upgraded the SDK, including the emulator to 27 . x。 Then the nightmare began. After the simulator starts successfully, the Android studio card cannot be connected, and waiting for target device to come online is displayed. I read the related posts of stack overflow again, but it didn’t work out. In the end, there was no way to do it. They almost wanted to reload the operating system (fortunately, it’s still the same problem after the reload). Before reloading, I took an old SDK from another machine. As a result, I was able to run and finally found the problem with the emulator. Lesson: if you have no problem with IDE, don’t always upgrade. The hairline is rising again.

My system: win7

Eact Native Generate APP: You have not accepted the license agreements of the following SDK components:

1、 Error information

* What went wrong:
A problem occurred configuring project ':app'.
&> You have not accepted the license agreements of the following SDK components:
  [Android SDK Build-Tools 26.0.3, Android SDK Platform 26].
  Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
  Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

2、 Cause of error

Starting from Android gradle plugin 2.2.0, gradle will automatically load the required SDK and build tools. However, because it does not accept the license, the loading dependency is terminated.

3、 Solutions

(1) Find your own Android SDK location and enter the tools/bin directory

(2) Open CMD (do not use any other one) and enter the above directory

(3) Enter the following command

sdkmanager.bat --licenses

(4) After input, a lot of things will pop up. We just need to write y in all of them

(5) Success tips