2017-04-24 72 views
0

時,即時通訊特林建立我的項目,它geving我這個錯誤廣東話構建反應本地項目在Windows的android 10

Checking the license for package Android SDK Build-Tools 23.0.1 in C:\Users\ASUS\AppData\Local\Android\Sdk\tools\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\ASUS\AppData\Local\Android\Sdk\tools\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 

但我想添加許可證forder到SDK路徑它沒有worked.i更新所有的我的skd平臺和sdk工具。但仍然得到這個錯誤,我可以解決這個問題。

回答

0

從Android工具direcory中使用android.bat,然後使用該工具安裝所有依賴項。在下載/安裝時,您將被要求接受許可證。

+0

如何從Android.bat文件安裝依賴關係? –

+0

只需運行android.bat文件 - 您將看到一個UI,您可以在其中選擇所需的依賴關係。然後你會安裝Android SDK Platform 23. – DKIT

+0

我運行了bat文件,但沒有打開任何界面,它消失了 –