question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Autolinking not working

See original GitHub issue

Describe the bug Build failed when I launch react-native run-android

Expected behavior Should build.

Versions :

  • Platfrom: Android
  • Device: Emulator
  • OS: Android 9
  • SDK Version: 28
  • React Native Version 0.60.5
  • react-native-mapbox-gl/maps version: 7.0.6

Additional context

FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve project :@react-native-mapbox-gl_maps.
     Required by:
         project :app
      > Unable to find a matching configuration of project :@react-native-mapbox-gl_maps:
          - None of the consumable configurations have attributes.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

12reactions
bpouzetcommented, Sep 26, 2019

I just try manually linking by adding this in settings.gradle file

include ':@react-native-mapbox-gl_maps'
project(':@react-native-mapbox-gl_maps').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-mapbox-gl/maps/android/rctmgl')

and it works!

It’s a workaround, there is still a bug with the autolinking

2reactions
Misiokacommented, Sep 26, 2019

@bpouzet thanks a lot. Now I see. Line order in settings.gradle is important. When I put apply from... above include. It starts to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React native auto linking is not working (RN0.61.5)
To resolve, just visit their github repositories and go through the manual linking process for android platform. Hope this helps. Share.
Read more >
Android autolinking is not working #11 - GitHub
When adding a native package that supports auto-linking, it's working on IOS but not on android. I used react-native-screens but it happens ...
Read more >
My Android Auto app isn't working - Google Help
My Android Auto app isn't working · Check if your car is compatible · Check your USB cable · Check your car or...
Read more >
Android Auto - Apps on Google Play
Android Auto is your smart driving companion that helps you stay focused, connected, and entertained with the Google Assistant.
Read more >
React Native Auto Linking on Android - Medium
gradle and MainApplication.java . If you have already moved your MainApplication class to Kotlin, then this unlinking will not work. You need to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found