AS升级之后的异常记录
Execution failed for task ':bulletcabinet:checkReleaseDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class org.intellij.lang.annotations.Flow found in modules jetified-annotations-13.0 (org.jetbrains:annotations:13.0) and jetified-annotations-java5-15.0 (org.jetbrains:annotations-java5:15.0)
>
解决方案一:(对于本人as降级处理无效)
configurations {
cleanedAnnotations
compile.exclude group: 'org.jetbrains' , module:'annotations'
}
方案二:
更新gradle.properites文件配置
#Sat Sep 25 16:32:41 CST 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
- 删除工程下gradle文件目录
- rebuild project
总结:当不知道本as版本对应哪个gradle版本时:建议新建一个工程然后build一下,如果能成功构建。则对比新工程和当前工程的配置参数进行适当调整
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':androidwebcamlibrary:checkDebugManifest' (type 'CheckManifest').
- Type 'com.android.build.gradle.internal.tasks.CheckManifest' property 'manifest' has @Input annotation used on property of type 'File'.
解决方案:
- rebuild project
WARNING: The following project options are deprecated and have been removed:
android.useDeprecatedNdk
解决方案:
- rebuild project
好用的Api工具推荐
历时一年半多开发终于smartApi-v1.0.0版本在2023-09-15晚十点正式上线 smartApi是一款对标国外的postman的api调试开发工具,由于开发人力就作者一个所以人力有限,因此v1.0.0版本功能进行精简,大功能项有:
- api参数填写
- api请求响应数据展示
- PDF形式的分享文档
- Mock本地化解决方案
- api列表数据本地化处理
- 再加上UI方面的打磨
本地运行,性能优越,高效,快捷
下面是一段smartApi使用介绍: