물에 살고싶은 개발자

[React-Native] 권한문제로 빌드가 안될때 본문

React-Native

[React-Native] 권한문제로 빌드가 안될때

돼지사랑 2019. 7. 29. 16:35

cmd에서 실행을 하든 파워셀에서 하든 vsc에서 하든 빌드가 갑자기 안되면서 아래의 에러를 만나는 경우가 있다.


info JS server already running.

info Building and installing the app on the device (cd android && gradlew.bat app:installDebug)...

> Task :app:packageDebug FAILED


FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':app:packageDebug'.

> 1 exception was raised by workers:

  java.io.UncheckedIOException: java.io.FileNotFoundException: D:경로\프로젝트명\android\app\build\intermediates\signing_config\debug\out\signing-config.json (액세스가 거부되었습니다)



* 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


Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.

Use '--warning-mode all' to show the individual deprecation warnings.

See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings


BUILD FAILED in 4s

79 actionable tasks: 1 executed, 78 up-to-date

error Could not install the app on the device, read the error above for details.

Make sure you have an Android emulator running or a device connected and have

set up your Android development environment:

https://facebook.github.io/react-native/docs/getting-started.html

error Command failed: gradlew.bat app:installDebug. Run CLI with --verbose flag for more details.


권한문제라고 하는데 


해결방법은 심플하다 


 java.io.UncheckedIOException: java.io.FileNotFoundException: D:경로\프로젝트명\android\app\build\intermediates\signing_config\debug\out\signing-config.json (액세스가 거부되었습니다)


이 경로에 가면 있는 signing-config.json 파일을 삭제 후 다시 빌드하면 된다

Comments