[React Native] BUILD ERROR) IllegalMonitorStateException

2022. 2. 25. 11:04React Native/Error

 > Task :app:stripDebugDebugSymbols FAILED

 

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:stripDebugDebugSymbols'.
> 17 exceptions were raised by workers:
  java.lang.IllegalMonitorStateException

Solution: Change the location of the [Contents] folder

from

/Applications/Android Studio/Contents/jre/Contents

 

to

/Applications/Android Studio/Contents/jre/jdk/Contents

 

  •  
  •  
  •  

BUILD SUCCESSFUL !

> Task :app:installDebug
Installing APK 'app-debug.apk' on 'SM-G981N - 12' for app:debug
Installed on 1 device.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.4.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 1m 24s
369 actionable tasks: 3 executed, 366 up-to-date
info Connecting to the development server...
8081
info Starting the app on "adb-R3CN30YLK6R-s2llqn._adb-tls-connect._tcp."...
Starting: Intent { cmp=com.😆.❤️/.MainActivity }

 

 

Reference