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
原因
在ANDROID_HOME路径下找不到文件,此处是与夜神模拟器配合使用,adb也使用的是夜神模拟器中的adb,故因此要在夜神模拟器的bin文件夹下寻找licenses文件,并查找对应文件。
解决办法
在Android Studio或者其他方法安装的SDK目录下,将licenses文件夹复制到夜神模拟器(其它模拟器注意路径即可)的bin文件夹下
上一篇: TypeScript的安装与搭建
下一篇: PHP类的使用 实例代码讲解_PHP