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

Android build fails - Could not find method compile() for arguments [directory 'libs'] #239

Open
mishkeTz opened this issue May 29, 2022 · 3 comments

Comments

@mishkeTz
Copy link

mishkeTz commented May 29, 2022

Version

1.0.7

Platform

  • | Android

OS version

Android 9.0

Steps to reproduce

  1. Fresh react native project
  2. Build android

Actual behavior

Android build fails with following reason:

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • Where:
    Build file '/Users/nikola/nikola/thinkit/Berac/node_modules/react-native-beacons-manager/android/build.gradle' line: 30

  • What went wrong:
    A problem occurred evaluating project ':react-native-beacons-manager'.

Could not find method compile() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

@Ox18
Copy link

Ox18 commented May 29, 2022

I have the same problem

@mishkeTz
Copy link
Author

The issue is gradle version, it can't build the APK if you are using this pacakge on gradle v7+ RN project.
We need a new version of the package that can work with gradle v7+ or downgrade the gradle in your project, but I guess that can break a lot of other stuff.

@Mansiwebiots
Copy link

@mishkeTz did you find any solution?

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