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

Problems running Android

Open TYRONEMICHAEL opened this issue 11 years ago • 14 comments

I have tried two different computers and keep getting the same issue. I have installed all Support Libraries as instructed from the website under Android Support.

Could not find com.android.support:appcompat-v7:23.0.0.
Could not find com.android.support:support-v4:21.0.3.

I am running OSX. The urls are also returning 404's. I.e https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.0/appcompat-v7-23.0.0.jar. No support folder either https://jcenter.bintray.com/com/android/

TYRONEMICHAEL avatar Sep 17 '15 08:09 TYRONEMICHAEL

I had the same problem,and I solved it by reading the react official docs.https://facebook.github.io/react-native/docs/android-setup.html#content,do exactly as the docs say.And also I found genymotion is faster than the native avd powered by Google.Here is the my demo image

mayuelei66 avatar Sep 17 '15 09:09 mayuelei66

Thanks for replying @mayuelei66!

@TYRONEMICHAEL Please make sure you have the prerequisites installed: https://facebook.github.io/react-native/docs/android-setup.html

mkonicek avatar Sep 17 '15 10:09 mkonicek

Uninstalled and reinstalled the support library. Seems to have done the trick. Thanks @mayuelei66.

TYRONEMICHAEL avatar Sep 17 '15 10:09 TYRONEMICHAEL

@mkonicek - there are contradictory instructions in the Android Setup Guide. Under "Install and configure SDK" it says:

"Start a new shell and run android; in the window that appears make sure you check: Android SDK Build-tools version 23.0.1 Android 6.0 (API 23) Android Support Repository"

All of "Android 6.0 (API 23)"? Really?

But in the next section "Install and run Android stock emulator" it says:

"Start a new shell and run android; in the window that appears make sure you check: Intel x86 Atom System Image (for Android 5.1.1 - API 22) Intel x86 Emulator Accelerator (HAXM installer)"

Oh, so just "Intel x86 Atom System Image"

But then in the screenshots it shows:

Android SDK Tools Android SDK Platform tools Android SDK Build tools Android 6.0 (API 23) / SDK Platform Android 6.0 (API 23) / Intel x86 Atom_64 System Image and Android 6.0 (API 23) / Intel x86 Atom System Image

Then:

Android Support Repository and Android Support Library

As well as:

Intel x86 Emulator Accelerator (HAXM installer)

Then in the AVD configuration screenshot it shows using Google APIs, which aren't available even if you install all of the above.

Needless to say, it's very confusing what is actually needed to get this running...

mbrookes avatar Sep 18 '15 18:09 mbrookes

+1 I've all the packages as specified in the docs, but I can't align all the dependencies

> Failed to notify project evaluation listener.
   > Could not resolve all dependencies for configuration ':ReactAndroid:_debugCompile'.
      > Could not find com.android.support:appcompat-v7:23.0.1.

grigio avatar Feb 02 '16 20:02 grigio

Did anyone got a solution for this issue , I am also facing the same issue .

Could not resolve all dependencies for configuration ':app:_debugCompile'.

Could not find com.android.support:appcompat-v7:23.2. Searched in the following locations: file:/C:/Users/aquib/.m2/repository/com/android/support/appcompat-v7/23.2/appcompat-v7-23.2.pom file:/C:/Users/aquib/.m2/repository/com/android/support/appcompat-v7/23.2/appcompat-v7-23.2.jar https://jcenter.bintray.com/com/android/support/appcompat-v7/23.2/appcompat-v7-23.2.pom https://jcenter.bintray.com/com/android/support/appcompat-v7/23.2/appcompat-v7-23.2.jar Required by: helloWorld:app:unspecified Could not find com.android.support:recyclerview-v7:23.0.1. Searched in the following locations: file:/C:/Users/aquib/.m2/repository/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom file:/C:/Users/aquib/.m2/repository/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar https://jcenter.bintray.com/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom https://jcenter.bintray.com/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar Required by: helloWorld:app:unspecified > com.facebook.react:react-native:0.20.1 Could not find com.android.support:appcompat-v7:23.2. Searched in the following locations: file:/C:/Users/aquib/.m2/repository/com/android/support/appcompat-v7/23.2/appcompat-v7-23.2.pom file:/C:/Users/aquib/.m2/repository/com/android/support/appcompat-v7/23.2/appcompat-v7-23.2.jar https://jcenter.bintray.com/com/android/support/appcompat-v7/23.2/appcompat-v7-23.2.pom https://jcenter.bintray.com/com/android/support/appcompat-v7/23.2/appcompat-v7-23.2.jar Required by: helloWorld:app:unspecified > com.facebook.react:react-native:0.20.1 Could not find com.android.support:support-v4:21.0.3. Searched in the following locations: file:/C:/Users/aquib/.m2/repository/com/android/support/support-v4/21.0.3/support-v4-21.0.3.pom file:/C:/Users/aquib/.m2/repository/com/android/support/support-v4/21.0.3/support-v4-21.0.3.jar https://jcenter.bintray.com/com/android/support/support-v4/21.0.3/support-v4-21.0.3.pom https://jcenter.bintray.com/com/android/support/support-v4/21.0.3/support-v4-21.0.3.jar Required by: helloWorld:app:unspecified > com.facebook.react:react-native:0.20.1 > com.facebook.fresco:fresco:0.8.1 > com.facebook.fresco:imagepipeline:0.8.1 helloWorld:app:unspecified > com.facebook.react:react-native:0.20.1 > com.facebook.fresco:fresco:0.8.1 > com.facebook.fresco:drawee:0.8.1

aqumus avatar Mar 01 '16 19:03 aqumus

I had the same issue with @aqumus . Installing Local Maven repository for Support Libraries within SDK Manager seems to solved the issue.

sercanov avatar Mar 01 '16 22:03 sercanov

+1 I confirm "Local Maven repository" fixes this issue

grigio avatar Mar 02 '16 08:03 grigio

+1 can confirm installing Local Maven Repository fixed this issue. If you cannot see Local Maven Repository, then you have to update the old Android Support Repository until Local Maven Repository shows up.

jamesone avatar Mar 14 '16 00:03 jamesone

I had to install Android Repository to get it to build.

outofculture avatar Apr 26 '16 00:04 outofculture

I got this error as well. I have followed the tutorial from react-native page, re-install "Android Support Repository" but still not working.

@jamesone hi i also cannot see Local Maven Repo in my SDK manager. My Android Support Repo has been updated to v32, but I still cannot see the Local Maven Repo? Any advice will be appreciated...

dannysindra avatar May 24 '16 22:05 dannysindra

@mayuelei66 You give the url (https://facebook.github.io/react-native/docs/android-setup.html#content) is redirect to the react-native getting started (https://facebook.github.io/react-native/docs/getting-started.html). It will not help other people to fix this problem.

tobyreynold avatar Jun 09 '16 07:06 tobyreynold

Can't see Local Maven Repository in my SDK manager, have "Android Support Repository" installed but still facing this error :: Error:Could not find com.facebook.fresco:fresco:0.11.0. Required by: android-client:ReactAndroid:unspecified Search in build.gradle files For all react-native dependencies on building from source in my already running project. @mayuelei66 @jamesone Can you please help in finding the solution for this

konark-hike avatar Jul 09 '16 20:07 konark-hike

This what worked for me: as we can see here Local Maven Repo now included in Android Support Repository and Google Repository https://developer.android.com/studio/intro/update.html

So, I installed both of them with SDK and finally built my project.

vlamitin avatar Oct 21 '16 07:10 vlamitin