【Android安全】Android Studio问题汇总

Android Studio问题汇总

现有项目生成apk时,提示Entry name 'assets/illustrate.html' collided

删除\app\release文件夹后重新编译

Android SDK package相关

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

https://blog.csdn.net/qq_30346413/article/details/96137430

解决SDK版本相关的问题:
https://stackoverflow.com/questions/54273412/failed-to-install-the-following-android-sdk-packages-as-some-licences- https://stackoverflow.com/questions/54273412/failed-to-install-the-following-android-sdk-packages-as-some-licences-have-nothave-not

在这里插入图片描述
在这里插入图片描述

在我的AS中的位置:
在这里插入图片描述

打包时报错Unknown option “-ignorewarning”

使用"-ignorewarnings" 替换proguard文件中的"-ignorewarning" 即可

参考:https://blog.csdn.net/qq_24501771/article/details/105665305

报错 Gradle sync failed: Invalid Gradle JDK configuration found.

在这里插入图片描述

22:03	Gradle sync started

22:03	Android Studio is using the following JDK location when running Gradle:
			D:\Academic\AndroidStudio\program202.7351085\jre
			Using different JDK locations on different processes might cause Gradle to
			spawn multiple daemons, for example, by executing Gradle tasks from a terminal
			while using Android Studio.
			More info...
			Select a JDK from the File System
			Do not show this warning again

22:03	Gradle sync failed: Invalid Gradle JDK configuration found. Open Gradle Settings 
			(38 ms)

解决办法:
删除项目.idea文件夹下的

.idea/gradle.xml
.idea/workspace.xml
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值