Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native Starter template installs using Android "run", but not using react-native run-android #103

Closed
spinoza1791 opened this issue Jul 14, 2022 · 0 comments

Comments

@spinoza1791
Copy link

For the React Native Starter repo, I configured Android Studio Settings and Project Structure with dependencies used in the default from the template repo:
Emulator Pixel 4 API 28, Gradle 5.5/Gradle Tools 3.4.2/JDK 12/Target&Compile sdk 28, build ver 28.0.3

  1. Run with Android Studio and Metro running in project folder -> Success -> React Native Starter home page
  2. react-native run-android -> Failure ->
    FAILURE: Build failed with an exception.
  • What went wrong:
    Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
    ... Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

Thank you for any suggestions! I used the original settings because newer versions of API, JDK and Gradle caused the same issue.

@spinoza1791 spinoza1791 changed the title template installs using Android "run", but not using react-native run-android React Native Starter template installs using Android "run", but not using react-native run-android Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants