【问题标题】:stop downloading of gradle during react native project running在反应本机项目运行期间停止下载gradle
【发布时间】:2018-04-21 08:31:06
【问题描述】:

我正在开发 react native android 项目。我已经启动了我的第一个 android react native 项目,因为我是初学者。当我运行我的应用程序时,它在我的cmd terminal 中显示了这个错误。我该如何解决它??

Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
File C:\Users\hasee\.android\repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 23.0.1 in C:\Users\hasee\AppData\Local\Android\Sdk\licenses
Warning: License for package Android SDK Build-Tools 23.0.1 not accepted.
Checking the license for package Android SDK Platform 23 in C:\Users\hasee\AppData\Local\Android\Sdk\licenses
Warning: License for package Android SDK Platform 23 not accepted.

FAILURE: Build failed with an exception.

* 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 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

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 6.997 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html

【问题讨论】:

标签: android reactjs react-native gradle


【解决方案1】:

~/Library/Android/sdk/tools/bin 运行:./sdkmanager --licenses

查看以下答案You have not accepted the license agreements of the following SDK components

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-03-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多