react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

Sync Gradle - cannot build - Each module must have a unique path

Open lachlanwp opened this issue 5 years ago • 4 comments

Your Environment

  • Plugin version: 0.6.3
  • Platform: Android
  • OS version: Android 9.0
  • Device manufacturer and model: Google Pixel 3
  • Running in Simulator: Yes
  • React Native version: 0.61.5
  • Plugin configuration options:
  • Link to your project: It's private

Context

I'm trying to build from Android Studio. I have tried both auto linking (running extra js file included) and manual linking. Android Studio cannot build the app. It looks like there are some duplicate references somewhere but I couldn't find them. The error I get when running a gradle sync is:

ERROR: The modules ['@mauron85_react-native-background-geolocation', 'mauron85_react-native-background-geolocation'] point to the same directory in the file system.
Each module must have a unique path.

Expected Behavior

I should be able to build from Android Studio.

Actual Behavior

Build is failing

Possible Fix

Check if there are some duplicate module references or if there is some conflict somewhere.

Steps to Reproduce

  1. Open Android RN folder in Android Studio
  2. Goto the "File" menu
  3. Click on "Sync project with gradle files"

Context

Issue has affected me since I started using the latest version of React Native. I was using this library in a different app with an older version of RN and it was working fine.

Debug logs

ERROR: The modules ['@mauron85_react-native-background-geolocation', 'mauron85_react-native-background-geolocation'] point to the same directory in the file system.
Each module must have a unique path.

lachlanwp avatar Feb 22 '20 09:02 lachlanwp

I have some issue, I built it on the command line. You can try it too.

react-native run-android

alicaglayan avatar Mar 05 '20 08:03 alicaglayan

i have the same issue on rn version 0.61.5

Balaji-Rahunathan avatar Mar 25 '20 02:03 Balaji-Rahunathan

Hi, I am facing the same issue, done all those things mentioned above but still facing same. Team support for the same. @alicaglayan I need to make release build @Balaji-Rahunathan any luck? @mauron85 @jwaldrip @morrislaptop

Screenshot 2020-07-15 at 8 57 57 PM

SalmanGhumsani avatar Jul 15 '20 17:07 SalmanGhumsani

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 23 '21 17:01 stale[bot]