您当前的位置: 首页 > 

lichong951

暂无认证

  • 3浏览

    0关注

    131博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

AS升级之后的异常记录

lichong951 发布时间:2021-09-25 21:36:24 ,浏览量:3

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
  1. 删除工程下gradle文件目录
  2. rebuild project

总结:当不知道本as版本对应哪个gradle版本时:建议新建一个工程然后build一下,如果能成功构建。则对比新工程和当前工程的配置参数进行适当调整

org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ‘:androidwebcamlibrary:checkDebugManifest’ (type ‘CheckManifest’).
  1. Type ‘com.android.build.gradle.internal.tasks.CheckManifest’ property ‘manifest’ has @Input annotation used on property of type ‘File’.

解决方案:

  1. rebuild project
WARNING: The following project options are deprecated and have been removed:

android.useDeprecatedNdk

解决方案:

  1. rebuild project
关注
打赏
1659512212
查看更多评论
立即登录/注册

微信扫码登录

0.3527s