Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gradle7 fails build #30

Open
shaksi opened this issue Jul 25, 2022 · 3 comments
Open

gradle7 fails build #30

shaksi opened this issue Jul 25, 2022 · 3 comments

Comments

@shaksi
Copy link

shaksi commented Jul 25, 2022

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.

@sirpy
Copy link
Contributor

sirpy commented Mar 1, 2024

@johnsmith-gooddollar

@johnsmith-gooddollar
Copy link
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'
     }

@johnsmith-gooddollar
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants