【发布时间】:2017-07-18 08:59:16
【问题描述】:
我做了以下官方链接中解释过的事情。
https://facebook.github.io/react-native/docs/running-on-device.html
设备已连接并表示信任我连接的计算机。
但是当我运行 react-native run-android 时,它会说
A problem occurred configuring project ':app'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
所以,我用谷歌搜索了很多来完成它。后来一个解决方案要求我创建 local.properties 文件并粘贴sdk.dir = /home/abc/androidsdk/sdk。然后我面临这个问题。
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 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
我唯一想要的就是在我的 lenova k4 note mobile 上运行我的 react-native 应用程序。
【问题讨论】:
-
好吧...为什么不按照错误所说的去做并打开 sdk 管理器?
-
@luschn 指导我如何。
-
你真的需要开始使用google了:developer.android.com/studio/intro/update.html
标签: javascript android mobile react-native facebook-android-sdk