0

我做了以下官方鏈接中解釋過的內容。無法通過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音符移動。

+0

設置PATH變量

爲Mac嗯......爲什麼不只是做錯誤說了什麼,打開sdk管理器? – luschn

+0

@luschn指導我如何。 –

+0

你真的需要開始使用谷歌:https://developer.android.com/studio/intro/update.html – luschn

回答

相關問題