我在 android studio 中遇到错误,我尝试了所有可能的步骤,但没有任何帮助。[Android Gradle 插件版本 4.2.2、Gradle 版本:7.2-rc-2 和 JDK 15.0.2
错误日志文件执行任务:项目 C:\Users\asrar\Desktop\Smart GIT 中的 [clean, :app:assembleDebug]
任务 :clean 最新 任务 :app:clean 任务 :app:preBuild 最新 任务 :app:preDebugBuild 最新 任务 :app:compileDebugAidl 无源任务 :app:compileDebugRenderscript 无源任务:app:generateDebugBuildConfig 任务 :app:javaPreCompileDebug 任务 :app:checkDebugAarMetadata 任务 :app:generateDebugResValues 任务 :app:generateDebugResources 任务 :app:processDebugGoogleServices 任务 :app:createDebugCompatibleScreenManifests 任务 :app:extractDeepLinksDebug 任务 :app:mergeDebugResources 任务 :app:processDebugMainManifest 任务:app:processDebugManifest 任务 :app:mergeDebugNativeDebugMetadata 无源任务 :app:mergeDebugShaders 任务 :app:compileDebugShaders 无源任务 :app:generateDebugAssets 最新任务 :app:mergeDebugAssets 任务 :app:compressDebugAssets 任务 :app:processDebugJavaRes无源任务:app:mergeDebugJavaResource 失败 任务:app:checkDebugDuplicateClasses 失败 任务:app:processDebugManifestForPackage
失败:构建已完成,但有 2 次失败。
执行 com.android.build.gradle.internal.tasks.MergeJavaResWorkAction newPosition < 0 …