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

Error while running the example on android devices..... #11

Open
vineethdas opened this issue Aug 30, 2021 · 4 comments
Open

Error while running the example on android devices..... #11

vineethdas opened this issue Aug 30, 2021 · 4 comments

Comments

@vineethdas
Copy link

vineethdas commented Aug 30, 2021

Hello!!!

Was just trying to run the example - vision-camera-image-labeler on an android device,
getting the below error after running the command,

react-native run-android

Can you please let me know what the error could be related to?

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':react-native-vision-camera'.

com.android.builder.errors.EvalIssueException: NDK at C:\xxxx\AppData\Local\Android\Sdk\ndk\20.1.5948944 did not have a source.properties file

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

  • Get more help at https://help.gradle.org

BUILD FAILED in 20s

Error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':react-native-vision-camera'.

com.android.builder.errors.EvalIssueException: NDK at C:\xxxxxxxxxxxx\20.1.5948944 did not have a source.properties file

@yfunk
Copy link
Contributor

yfunk commented Aug 30, 2021

The Android example on main is broken right now, can you try if #7 works for you?

@yfunk yfunk mentioned this issue Aug 30, 2021
4 tasks
@vineethdas
Copy link
Author

Hi @yfunk ,

Thanks for your reply,
I think I tried the changes mentioned in #7, but still getting the error,
will wait for the fix on example for android .
Cheers :)

@yfunk
Copy link
Contributor

yfunk commented Aug 31, 2021

I just checked again, the example app on main currently builds fine for Android (but doesn't start properly afterwards).

Seems like the issue may be related to your environment, you could try some of the solutions from this thread (re-installing the NDK / updating Android Studio should probably do it).

@mrousavy
Copy link
Owner

mrousavy commented Sep 2, 2021

#7 got merged, does it run for you now?

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

3 participants