编译错误,RuntimeException: java.lang.RuntimeException: We found duplicate *** class files
- Dominant language
- C++
- Stars
- 2.5k
- Forks
- 335
- PR merge metrics
- No merged PRs in 30d
Description
```java
Execution failed for task ':app:transformClassesWithRheaTraceFor***32***'.
> java.lang.RuntimeException: java.lang.RuntimeException: We found duplicate android/support/v4/app/INotificationSideChannel$Stub$Proxy class files in the project.
Failed to resolve class android/support/v4/app/INotificationSideChannel$Stub$Proxy.class[
transform input:
/Users/yyyyyy/Projects/zzzzzzzz/app/build/intermediates/transforms/xxTransform/***/***/30.jar!android/support/v4/app/INotificationSideChannel$Stub$Proxy.class
/Users/yyyyyy/Projects/zzzzzzzz/app/build/intermediates/transforms/xxTransform/***/***/185.jar!android/support/v4/app/INotificationSideChannel$Stub$Proxy.class
project input:
/Users/yyyyyy/.gradle/caches/transforms-2/files-2.1/72d585bd95bb9d645bd2fd7b704a08b8/jars/classes.jar!android/support/v4/app/INotificationSideChannel$Stub$Proxy.class
/Users/yyyyyy/.gradle/caches/transforms-2/files-2.1/5b8b4b648517858b8e5b3a6c74cf95b8/jars/classes.jar!android/support/v4/app/INotificationSideChannel$Stub$Proxy.class
aar input:
/Users/yyyyyy/.gradle/caches/modules-2/files-2.1/com.android.support/support-compat/27.1.0/a7eea3cb0c9f9bf5ce0f0899a9bee721ffd191e0/support-compat-27.1.0.aar!classes.jar!android/support/v4/app/INotificationSideChannel$Stub$Proxy.class
/Users/yyyyyy/.gradle/caches/modules-2/files-2.1/androidx.core/core/1.3.2/18a4755efb834c487bac7062e508465f0c853218/core-1.3.2.aar!classes.jar!android/support/v4/app/INotificationSideChannel$Stub$Proxy.class]
```
PC环境:mac Apple M2 Pro;
MAC 版本:13.5.1 (22G90);
JDK版本:1.8;
Python 版本:无(还未到这一步)
执行命令:无(还未到这一步)
手机环境:无(还未到这一步)
assests 目录:有文件
插桩代码还未看
AGP 版本:gradle-5.2
Java 版本:1.8
Contributor guide
Research direction
Begin with the :app:transformClassesWithRheaTraceFor***32*** failure and compare the duplicate class paths in the transform, project, and AAR inputs. Reproduce with the reported AGP/Gradle and JDK versions. The expected fix and verification criteria are not defined, so maintainer clarification is needed before starting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100