安卓打包时遇到的问题

来源:15-3 集成与打包Android应用

启蒙前端

2021-08-06

What went wrong:
Could not determine the dependencies of task ‘:app:compileReleaseJavaWithJavac’.

Failed to install the following Android SDK packages as some licences have not been accepted.
platforms;android-30 Android SDK Platform 30
build-tools;29.0.2 Android SDK Build-Tools 29.0.2
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

Using Android SDK: /Users/zhangmeng/Library/Android/sdk

写回答

2回答

启蒙前端

提问者

2021-08-07

嗯,还有个问题,每次打包时,没有权限,都会被拒绝,需要加  sudo,这个有方法修改吗

0
3
CrazyCodeBoy
回复
启蒙前端
参考下这个看能否帮到你:https://blog.csdn.net/qq_30889373/article/details/80689416
2021-08-09
共3条回复

CrazyCodeBoy

2021-08-07

用as打开项目下的Android项目然后 下载和安装下build-tools;29.0.2 Android 30 SDK。

0
0

Flutter高级进阶实战-仿哔哩哔哩-掌握Flutter高阶技能

一次性掌握Flutter高阶技能+商业级复杂项目架构设计与开发方案

1723 学习 · 870 问题

查看课程