Skip to content

gradle7 fails build #30

Open
Open

Description

@shaksi

Description

compiling android fails due to gradle7 moving away from maven to maven-publish

Steps to reproduce

update to latest android studio which forces usage of gradle7.

Supporting data

  • Where:
    Build file '../node_modules/@gooddollar/react-native-facetec/android/build.gradle' line: 122

  • What went wrong:
    A problem occurred configuring project ':gooddollar_react-native-facetec'.

Configuration with name 'compile' not found.

Activity

  1. sirpy commented on Mar 1, 2024

    @sirpy
    Contributor
  2. johnsmith-gooddollar commented on Mar 2, 2024

    @johnsmith-gooddollar
    Contributor

    @shaksi

    1. try this solution Unable to build on Android after upgrading lottie version 3.5.0 to 4.1.3 software-mansion/react-native-reanimated#2494 (comment)
    2. or you could patch android/build.gradle via patch-package or yarn patch the following way:
     afterEvaluate { project ->
     
         task androidJavadoc(type: Javadoc) {
             source = android.sourceSets.main.java.srcDirs
             classpath += files(android.bootClasspath)
    -        classpath += files(project.getConfigurations().getByName('compile').asList())
    +        classpath += files(project.getConfigurations().getByName('customConfig').asList())
             include '**/*.java'
         }
    
  3. johnsmith-gooddollar commented on Mar 2, 2024

    @johnsmith-gooddollar
    Contributor

    @shaksi also please read my answer here about what this library is and why you can't just take and re-use it in own project "as is": #45 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions