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.

Build failed with an exception on Android

See original GitHub issue

Hi,

My app is working well on iOS on dev. but when it goes to andorid I have below error :

> Could not resolve all files for configuration ':react-native-screens:debugCompileClasspath'.
   > Could not find coordinatorlayout.jar (androidx.coordinatorlayout:coordinatorlayout:1.0.0).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/coordinatorlayout/coordinatorlayout/1.0.0/coordinatorlayout-1.0.0.jar

react-native run-android Screen Shot 2019-11-05 at 11 42 52 AM

package.json Screen Shot 2019-11-05 at 11 58 08 AM

build.gradle Screen Shot 2019-11-05 at 11 57 49 AM

seems it’s an enviromental problem, cause it’s working on my friend’s laptop!!

any idea to make it work ? Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

23reactions
ramyareyecommented, Nov 15, 2019

fixed!

in node_modules/react-native-screens/build.gradle I changed

implementation 'androidx.coordinatorlayout:coordinatorlayout:1.0.0'

from dependencies to

implementation 'androidx.coordinatorlayout:coordinatorlayout:1.0.0@aar'

@kmagiera sry for mention, any suggestion to fix this permanently ? thanks

1reaction
alisourancommented, May 18, 2021

fixed!

in node_modules/react-native-screens/build.gradle I changed

implementation 'androidx.coordinatorlayout:coordinatorlayout:1.0.0'

from dependencies to

implementation 'androidx.coordinatorlayout:coordinatorlayout:1.0.0@aar'

@kmagiera sry for mention, any suggestion to fix this permanently ? thanks

Worked for me, Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Android Studio Build failed with an exception Execution ...
3 Answers 3 · Do a project cleanup. Go to Build->Clean Project and try again · If (1) doesn't work, close and restart...
Read more >
FAILURE: Build failed with an exception in android studio
Hi, I am using editor version 2.4.6 to create a build, after building in cocos when trying to build on android getting an...
Read more >
Gradle build error. Build failed with an exception - Help/Discuss
I get this error when I try to build my game for Android in Unity. How do I get rid of that? FAILURE:...
Read more >
Build failed with an exception. * What went wrong: Could not ...
Facing this issue while running on android FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies ......
Read more >
Known issues with Android Studio and Android Gradle Plugin
When you navigate to Build > Generate Signed Bundle / APK and attempt to configure app ... might fail and throw an INSTALL_PARSE_FAILED_NOT_APK...
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