React-Native 运行安卓应用时总是出错,该如何解决?

怎么办
  • 125

clipboard.png
File C:UsersAdministrator.androidrepositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 25.0.2 in F:Androidsdklicenses
Warning: License for package Android SDK Build-Tools 25.0.2 not accepted.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugApk'.
A problem occurred configuring project ':react-native-image-picker'.
You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 25.0.2].

Before building your project, you need to accept the license agreements and complete the installation of the missing components using the An
droid 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...
t-licenses.html

我用模拟器运行时也会出现这个错误,但是在模拟器上程序可以正常执行,用真机运行时出现这个错误,而且无法在真机上运行

回复
阅读 3.9k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏