Android

Android Studio迁移工程报错

Android Studio迁移工程中发现如下错误

Failed to install the following Android SDK packages as some licences have not been accepted.

解决方法如下:

1、进入C:\Users\Shaynerain\AppData\Local\Android\Sdk\tools\bin

可看到sdkmanager.bat文件内容如下

2、脚本中可看到要有JAVA_HOME环境变量,添加环境变量

3、执行,过程中全部输入y

.\sdkmanager.bat

.\sdkmanager.bat –licenses

.\sdkmanager.bat –update

4、如果上述报错.android\repositories.cfg could not be loaded.

打开该文件路径,创建一个repositories.cfg

 

 

闻道有先后
术业有专攻

From: shaynerain.com

By: Shaynerain

1 COMMENTS

LEAVE A RESPONSE

电子邮件地址不会被公开。

Hi, I'm shaynerain, this is my website. www.shaynerain.com