Erro ao usar react-native-camera

0 respostas
reactfront-endjavascript
A

Olá,

Estou precisando colocar o aplicativo para ler o QRCode e no tutorial que estou achando fala para usar o react-native-camera. Só que não estou conseguindo fazer funcionar a câmera do celular.

Já fiz a configuração que fala no tópico do link https://github.com/react-native-community/react-native-camera/blob/master/docs/installation.md#requirements

Mesmo assim continua dando erro e não abre o aplicativo. Segue o erro:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-camera:compileGeneralDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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 17s

    at checkExecSyncError (child_process.js:629:11)
    at execFileSync (child_process.js:647:13)
    at runOnAllDevices (D:\Projetos_ReactNative\Exemplos\reactnativecamera\node_modules\@r
eact-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:75
:39)
    at buildAndRun (D:\Projetos_ReactNative\Exemplos\reactnativecamera\node_modules\@react
-native-community\cli-platform-android\build\commands\runAndroid\index.js:137:41)
    at then.result (D:\Projetos_ReactNative\Exemplos\reactnativecamera\node_modules\@react
-native-community\cli-platform-android\build\commands\runAndroid\index.js:103:12)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Criado 9 de julho de 2019
Respostas 0
Participantes 1