RN Exception: Before building your project, you need to accept the license agreements and comp le...

异常

* What went wrong:
A problem occurred configuring project ':app'.
> 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 comp
lete the installation of the missing components using the Android Studio SDK Man
ager.
Alternatively, to learn how to transfer the license agreements from one workstat
ion to another, go to http://d.android.com/r/studio-ui/export-licenses.html
RN Exception: Before building your project, you need to accept the license agreements and comp le..._第1张图片
异常.png

原因

在ANDROID_HOME路径下找不到文件,此处是与夜神模拟器配合使用,adb也使用的是夜神模拟器中的adb,故因此要在夜神模拟器的bin文件夹下寻找licenses文件,并查找对应文件。

解决办法

在Android Studio或者其他方法安装的SDK目录下,将licenses文件夹复制到夜神模拟器(其它模拟器注意路径即可)的bin文件夹下


RN Exception: Before building your project, you need to accept the license agreements and comp le..._第2张图片
licenses.png

你可能感兴趣的:(RN Exception: Before building your project, you need to accept the license agreements and comp le...)