vision-camera-image-labeler
vision-camera-image-labeler copied to clipboard
Error while running the example on android devices.....
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
The Android example on main is broken right now, can you try if #7 works for you?
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 :)
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).
#7 got merged, does it run for you now?