不接受以下SDK组件的许可协议

时间:2018-01-15 11:08:57

标签: android android-studio react-native

我知道这是一个老问题,但我无法修复它 这是我的infor sdk经理 enter image description here

enter image description here

环境设置 enter image description here

运行许可证权限和结果

enter image description here

这是我的许可证文件夹 enter image description here

但是在运行我的应用时会显示错误 enter image description here

我如何修复错误? 非常感谢

2 个答案:

答案 0 :(得分:0)

open your android sdk manager.

enter image description here

in your case the sdk 23.0.1 is missing license agreement. If its already installed delete it and install it again. On install screen make sure to accept the licence agreement given in radio box.

enter image description here

Clean and build again. Hope it helps.

答案 1 :(得分:0)

确保正确设置了ANDROID_HOME环境变量。

例如,如果它是C:\ Users \%USERNAME%\ AppData \ Local \ Android \ Sdk \ tools \而不是C:\ Users \%USERNAME%\ AppData \ Local \ Android \ Sdk \在您尝试Gradle构建之前,一切似乎都能正常工作。

相关问题