IT技术之家

首页 > 移动

移动

Android Studio 4.1.1 项目编译失败 一直显示 Gradle Config Projecr_Lan.W

发布时间:2023-12-10 02:43:41 移动 29次 标签:gradle android android studio
启动时候编译报以下错:Build file 'H:\LaniWork2021\gitcode\INP_Curie_APP2\Curie\MPChartLib\build.gradle' line: 51A problem occurred evaluating project ':MPChartLib'.> Failed to install the following Android SDK packages as some licences have not been...

启动时候编译报以下错:


Build file 'H:\LaniWork2021\gitcode\INP_Curie_APP2\Curie\MPChartLib\build.gradle' line: 51

A problem occurred evaluating project ':MPChartLib'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
? ? ?build-tools;29.0.3 Android SDK Build-Tools 29.0.3
? ? ?platforms;android-29 Android SDK Platform 29
? To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
? Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
?

重启之后:

Still waiting for package manifests to be fetched remotely.

操作:

?删除Android Studio 重新安装

1、先 cd 到 安装sdk 的 tools/bin 目录下:如 cd /home/xxxxx/xxx/00_soft/sdk/android-sdk-linux/tools/bin

? ? ? 在没有更新 sdkmanager 之前,该文件夹下只有一个 sdkmanager 可执行文件

2、执行命令 ?./sdkmanager.bat?--update

3. 再执行? ./sdkmanager.bat?--licenses?