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 can't run

See original GitHub issue

Summary

Version 0.21.5
Affected OS Android
OS Version 7.0

Current behavior

`* What went wrong: A problem occurred configuring project ‘:react-native-device-info’.

Could not resolve all dependencies for configuration ‘:react-native-device-inf o:_debugPublishCopy’. Could not find com.android.support:support-v4:26.1.0. Searched in the following locations: file:/D:/Android/sdk/extras/android/m2repository/com/android/support/su pport-v4/26.1.0/support-v4-26.1.0.pom file:/D:/Android/sdk/extras/android/m2repository/com/android/support/su pport-v4/26.1.0/support-v4-26.1.0.aar file:/D:/project/read/android/sdk-manager/com/android/support/support-v 4/26.1.0/support-v4-26.1.0.aar Required by: yuecai:react-native-device-info:unspecified > com.facebook.react:react- native:0.46.4 > com.android.support:appcompat-v7:23.0.1 Could not find com.android.support:support-v4:26.1.0. Searched in the following locations: file:/D:/Android/sdk/extras/android/m2repository/com/android/support/su pport-v4/26.1.0/support-v4-26.1.0.pom file:/D:/Android/sdk/extras/android/m2repository/com/android/support/su pport-v4/26.1.0/support-v4-26.1.0.aar file:/D:/project/read/android/sdk-manager/com/android/support/support-v 4/26.1.0/support-v4-26.1.0.aar Required by: yuecai:react-native-device-info:unspecified > com.google.android.gms:pl ay-services-gcm:15.0.1 > com.google.android.gms:play-services-basement:15.0.1

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.`

Expected behavior

help me! thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:19

github_iconTop GitHub Comments

7reactions
Richi2293commented, May 28, 2018

this is the problem for me image

and in fact if you go on this link returns 404 resource not found https://jcenter.bintray.com/android/arch/lifecycle/runtime/1.0.0/runtime-1.0.0.jar

this is why I thought that the problem is with jcenter


This is another proof:

https://stackoverflow.com/questions/50562212/gradle-build-tool-cannot-find-play-services-tasks-aar-why/50562478#50562478

0reactions
machourcommented, May 28, 2018

See #414

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't run app projects on Android Studio - Stack Overflow
3 Answers 3 · Clean and then rebuild your project · Make your project (it should work by now) · Check your dependencies...
Read more >
Fix an installed Android app that isn't working - Google Support
Try the following steps if an app installed on your phone has any of these problems: Crashing. Won't open. Won't respond. Isn't working...
Read more >
Troubleshooting: Cannot Run on an Android Device or Emulator
Power off or restart your Android device and then run your application again. · Choose another debug port: Select Run > Parameters and...
Read more >
Troubleshoot known issues with Android Emulator
Check for adequate disk space · Antivirus software · HAXM on unsupported versions of macOS · Android Emulator runs slowly after an update...
Read more >
Why does Android Studio build successfully but doesn't run ...
Try mounting the SD CARD by going to storage→click on sd card.If it is already mounted try unmounting and mounting it again.If it...
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