React-native-config: Android Build Exception - Could not find method android() for arguments

Created on 3 Jul 2018  路  3Comments  路  Source: luggit/react-native-config

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

android-app-build.gradle .txt
android-build.gradle.txt

All 3 comments

Search in closed issues

246

same issue here

Was this page helpful?
0 / 5 - 0 ratings