Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TeamAmaze#4157 Error: ``` $ ./gradlew assembleFdroidRelease FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'amaze'. > Could not create an instance of type org.gradle.accessors.dm.LibrariesForLibs. > Could not generate a decorated class for type LibrariesForLibs. > org/gradle/accessors/dm/LibrariesForLibs$AndroidxLibraryAccessors (wrong name: org/gradle/accessors/dm/LibrariesForLibs$AndroidXLibraryAccessors) ``` Analysis: Find all string `AndroidxLibraryAccessors` ``` grep -r AndroidXLibraryAccessors . ``` Before: ``` /** * A catalog of dependencies accessible via the `libs` extension. */ @NonNullApi public class LibrariesForLibs extends AbstractExternalDependencyFactory { private final AbstractExternalDependencyFactory owner = this; private final AcraLibraryAccessors laccForAcraLibraryAccessors = new AcraLibraryAccessors(owner); private final AmazeLibraryAccessors laccForAmazeLibraryAccessors = new AmazeLibraryAccessors(owner); private final AndroidXLibraryAccessors laccForAndroidXLibraryAccessors = new AndroidXLibraryAccessors(owner); private final AndroidxLibraryAccessors laccForAndroidxLibraryAccessors = new AndroidxLibraryAccessors(owner); ``` After: ``` /** * A catalog of dependencies accessible via the `libs` extension. */ @NonNullApi public class LibrariesForLibs extends AbstractExternalDependencyFactory { private final AbstractExternalDependencyFactory owner = this; private final AcraLibraryAccessors laccForAcraLibraryAccessors = new AcraLibraryAccessors(owner); private final AmazeLibraryAccessors laccForAmazeLibraryAccessors = new AmazeLibraryAccessors(owner); private final AndroidXLibraryAccessors laccForAndroidXLibraryAccessors = new AndroidXLibraryAccessors(owner); private final ApacheLibraryAccessors laccForApacheLibraryAccessors = new ApacheLibraryAccessors(owner); ``` No class conflict(AndroidXLibraryAccessors vs AndroidxLibraryAccessors) anymore. Root cause: Seems this bug only show up on gradle 7.x(7.5 and 7.6.4) not gradle 8.7. macOS is not a case sensitive file system by default, so the CI passed in Linux and failed in macOS.
- Loading branch information