无法通过USB在我的手机上运行反应本机应用程序
我做了以下官方链接中解释过的内容。无法通过USB在我的手机上运行反应本机应用程序
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.
所以,我用Google搜索了很多把它完成。稍后解决方案要求我创建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音符移动。
你得到这个问题,因为ANDROID_HOME变量没有设置PATH的使用 Setting ANDROID_HOME enviromental variable on Mac OS X
嗨我正在使用Ubuntu 14 –
只是谷歌它在Ubuntu中添加环境变量或路径变量,你会得到很多帖子 –
设置PATH变量
为Mac嗯......为什么不只是做错误说了什么,打开sdk管理器? – luschn
@luschn指导我如何。 –
你真的需要开始使用谷歌:https://developer.android.com/studio/intro/update.html – luschn