简体   繁体   中英

react-native run-android fails: Could not install the app on the device, read the error above for

You have not accepted the license agreements of the following SDK components: [Android SDK Platform 23, Android SDK Build-Tools 23.0.1]. 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

Copy licenses folder inside C:/Users/your user/AppData/Local/Android/Sdk/licenses and past to C:/Users/your user/AppData/Local/Android/Sdk/tools folder.

Now run react-native run-android

It worked for me

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM