vision-camera-image-labeler icon indicating copy to clipboard operation
vision-camera-image-labeler copied to clipboard

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

Open vineethdas opened this issue 4 years ago • 4 comments

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

vineethdas avatar Aug 30 '21 15:08 vineethdas

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

yfunk avatar Aug 30 '21 20:08 yfunk

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 :)

vineethdas avatar Aug 31 '21 12:08 vineethdas

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).

yfunk avatar Aug 31 '21 12:08 yfunk

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

mrousavy avatar Sep 02 '21 08:09 mrousavy