cannot run the examples os Android emulator, build is failing
Expected Behavior
Expected that the app example app run on Android emulator
Observed Behavior
Projects/react-native-calendars/example master ✗ 2h29m ◒
▶ react-native run-android
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
downloadRobolectricDependencies /Users/joaocunha/Documents/Projects/react-native-calendars/example/android/build/robolectric-dependencies
File /Users/joaocunha/.android/repositories.cfg could not be loaded.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-navigation'.
> Could not resolve all dependencies for configuration ':react-native-navigation:_debugPublishCopy'.
> Could not find com.android.support:design:27.1.1.
Searched in the following locations:
file:/Users/joaocunha/Library/Android/sdk/extras/android/m2repository/com/android/support/design/27.1.1/design-27.1.1.pom
file:/Users/joaocunha/Library/Android/sdk/extras/android/m2repository/com/android/support/design/27.1.1/design-27.1.1.jar
file:/Users/joaocunha/Documents/Projects/react-native-calendars/example/android/sdk-manager/com/android/support/design/27.1.1/design-27.1.1.jar
Required by:
CalendarsExample:react-native-navigation:unspecified
> Could not find com.android.support:appcompat-v7:27.1.1.
Searched in the following locations:
file:/Users/joaocunha/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.1.1/appcompat-v7-27.1.1.pom
file:/Users/joaocunha/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.1.1/appcompat-v7-27.1.1.jar
file:/Users/joaocunha/Documents/Projects/react-native-calendars/example/android/sdk-manager/com/android/support/appcompat-v7/27.1.1/appcompat-v7-27.1.1.jar
Required by:
CalendarsExample:react-native-navigation:unspecified
CalendarsExample:react-native-navigation:unspecified > com.facebook.react:react-native:0.57.4
> Could not find com.android.support:design:27.1.1.
Searched in the following locations:
file:/Users/joaocunha/Library/Android/sdk/extras/android/m2repository/com/android/support/design/27.1.1/design-27.1.1.pom
file:/Users/joaocunha/Library/Android/sdk/extras/android/m2repository/com/android/support/design/27.1.1/design-27.1.1.jar
file:/Users/joaocunha/Documents/Projects/react-native-calendars/example/android/sdk-manager/com/android/support/design/27.1.1/design-27.1.1.jar
Required by:
CalendarsExample:react-native-navigation:unspecified > com.aurelhubert:ahbottomnavigation:2.0.6
> Could not find com.android.support:appcompat-v7:27.1.1.
Searched in the following locations:
file:/Users/joaocunha/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.1.1/appcompat-v7-27.1.1.pom
file:/Users/joaocunha/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.1.1/appcompat-v7-27.1.1.jar
file:/Users/joaocunha/Documents/Projects/react-native-calendars/example/android/sdk-manager/com/android/support/appcompat-v7/27.1.1/appcompat-v7-27.1.1.jar
Required by:
CalendarsExample:react-native-navigation:unspecified > com.balysv.materialmenu:material-menu-toolbar:1.5.4
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 8.682 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-calendars:
▶ npm ls react-native-calendars
CalendarsExample@0.0.1 /Users/joaocunha/Documents/Projects/react-native-calendars/example
└── react-native-calendars@1.21.0
npm ls react-native:
▶ npm ls react-native
CalendarsExample@0.0.1 /Users/joaocunha/Documents/Projects/react-native-calendars/example
└── react-native@0.57.4
Also specify:
Phone/emulator/simulator & version:
Android emulator API-21 and API-27
Description
cannot run the examples os Android emulator, build is failing
Expected Behavior
Expected that the app example app run on Android emulator
Observed Behavior
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-calendars
:npm ls react-native
:Also specify: