欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2024-01-20 09:37:10
...

异常

* 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...
异常.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...
licenses.png