I am trying to generate apk of react native through cmd in windows but it show following error
C:\Users\sohai\yahoo\android>gradlew assembleRelease
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\sohai\yahoo\android\build.gradle' line: 15
What went wrong:
A problem occurred evaluating root project 'yahoo'.
Could not find method android() for arguments [build_cooll3gevmfwtuh2xubz5a92n$_run_closure1@27af3bc0] on root project 'yahoo' of type org.gradle.api.Project.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 0s
Here is my gradle files
Search in closed issues
same issue here